/* ================= Pages: forms, account, demo, docs, use cases, legal ================= */
[hidden] { display: none !important; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.muted { color: var(--ink-mute); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute); }
.lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin-top: 14px; max-width: 560px; }
code { font-family: var(--mono); font-size: .88em; background: var(--paper); border: 1px solid rgba(21,18,43,.15); padding: 1px 5px; }
pre { background: var(--ink); color: #e9e6ff; border: var(--line); box-shadow: var(--sh-sm); padding: 14px 16px; overflow-x: auto; margin: 14px 0; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: 13px; line-height: 1.7; }
mark { background: var(--lemon); color: var(--ink); }

/* form bits */
.form-error { border: var(--line); background: #ffe1dc; color: #8a1c0e; box-shadow: var(--sh-sm); padding: 10px 12px; font-size: 13.5px; text-align: left; margin-bottom: 6px; }
.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.auth input:not([type=checkbox]), .demo-card input, .demo-card textarea {
  width: 100%; border: var(--line); padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; box-shadow: var(--sh-sm); outline: none; transition: box-shadow .15s;
}
.auth input:focus, .demo-card input:focus, .demo-card textarea:focus { box-shadow: 4px 4px 0 var(--cta); }
.demo-card textarea { resize: vertical; }
.pw-wrap { position: relative; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; padding: 3px 6px; border: 1.5px solid var(--ink); background: var(--paper); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.pw-meter i { height: 5px; background: rgba(21,18,43,.12); transition: background .2s; }
.pw-meter[data-score="1"] i:nth-child(-n+1) { background: var(--coral); }
.pw-meter[data-score="2"] i:nth-child(-n+2) { background: var(--band); }
.pw-meter[data-score="3"] i:nth-child(-n+3) { background: var(--lemon); }
.pw-meter[data-score="4"] i { background: var(--mint); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--cta); outline-offset: 2px; }

/* account */
.account { padding: 56px 24px 96px; }
.acct-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.acct-head h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 4px 0; }
.acct-ava { width: 64px; height: 64px; border: var(--line); box-shadow: var(--sh-sm); background: #fff; }
.acct-ava svg { width: 100%; height: 100%; }
.acct-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; margin-top: 36px; align-items: start; }
.panel { background: #fff; border: var(--line); box-shadow: var(--sh); padding: 22px; }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 12px; border: 1.5px solid rgba(21,18,43,.2); padding: 10px 12px; transition: background .2s; }
.steps li label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; flex: 1; cursor: pointer; line-height: 1.45; }
.steps li input { width: 16px; height: 16px; accent-color: var(--cta); margin-top: 2px; flex: none; }
.steps li a { font-size: 12.5px; font-weight: 700; white-space: nowrap; border-bottom: 2px solid var(--ink); }
.steps li.done { background: #e9fff0; }
.steps li.done b { text-decoration: line-through; }
.progress { height: 10px; border: var(--line); margin-top: 16px; background: var(--paper); }
.progress i { display: block; height: 100%; width: 0; background: var(--cta); transition: width .4s cubic-bezier(.2,.8,.2,1); }
#prog { margin-top: 8px; }
.bk-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bk-list li { border: 1.5px solid var(--ink); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; background: var(--paper); }
.bk-list span { font-size: 12.5px; color: var(--ink-mute); font-family: var(--mono); }

/* demo */
.demo-page { padding: 64px 0 96px; background-image: radial-gradient(rgba(21,18,43,.08) 1px, transparent 1.2px); background-size: 22px 22px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.demo-pitch h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.15; margin-top: 10px; }
.ticks { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; font-size: 15px; align-items: center; }
.ticks li::before { content: "✓"; width: 22px; height: 22px; flex: none; border: var(--line); background: var(--aqua); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.host { display: flex; align-items: center; margin-top: 32px; }
.host-ava { width: 44px; height: 44px; border: var(--line); background: #fff; margin-right: -6px; }
.host p { margin-left: 18px; font-size: 14px; }
.demo-card { background: #fff; border: var(--line); box-shadow: 8px 8px 0 var(--ink); padding: 24px; position: relative; }
.demo-card fieldset { border: 0; display: flex; flex-direction: column; min-width: 0; }
.demo-card fieldset:not([hidden]) { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.demo-card label { font-size: 12.5px; font-weight: 700; margin: 14px 0 6px; }
.demo-card .next, .demo-card .row-btns { margin-top: 22px; }
.demo-card .next { align-self: flex-start; }
.stepper { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border: var(--line); margin-bottom: 8px; }
.stepper li { font-family: var(--mono); font-size: 11.5px; text-align: center; padding: 6px; color: var(--ink-mute); transition: background .3s, color .3s; }
.stepper li + li { border-left: var(--line); }
.stepper li.on { background: var(--band); color: var(--ink); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button, .slots button, .days button, .filters button {
  border: var(--line); background: #fff; box-shadow: var(--sh-sm); padding: 7px 12px; font-size: 13px; font-weight: 700; transition: transform .1s, background .15s;
}
.chips button:hover, .slots button:hover:not([disabled]), .days button:hover, .filters button:hover { transform: translate(-1px, -1px); }
.chips button.on, .slots button.on, .days button.on, .filters button.on { background: var(--cta); color: #fff; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.days button { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; line-height: 1.2; }
.days button b { font-size: 18px; }
.days button small { font-size: 10px; font-weight: 400; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; min-height: 40px; }
.slots button { font-family: var(--mono); font-size: 12.5px; padding: 7px 4px; }
.slots button[disabled] { opacity: .35; text-decoration: line-through; box-shadow: none; cursor: not-allowed; }
.slots p { grid-column: 1 / -1; }
.row-btns { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.done { text-align: center; padding: 22px 6px 6px; animation: fadeUp .5s ease both; }
.done h2 { font-size: 28px; margin-top: 14px; }
.done p { color: var(--ink-soft); margin-top: 8px; }
.done .ref { font-family: var(--mono); font-size: 13px; }
.done .row-btns { margin-top: 22px; }
.done-badge { width: 64px; height: 64px; margin: 0 auto; border: var(--line); box-shadow: var(--sh-sm); background: var(--aqua); animation: float 2.6s ease-in-out infinite; --r: -6deg; }

/* docs v2 */
.docs { grid-template-columns: 260px minmax(0, 1fr) 200px; }
.doc-search { position: relative; margin-bottom: 18px; }
.doc-search input { width: 100%; border: var(--line); padding: 8px 34px 8px 10px; font: inherit; font-size: 13.5px; box-shadow: var(--sh-sm); outline: none; }
.doc-search kbd { position: absolute; right: 8px; top: 7px; font-family: var(--mono); font-size: 11px; border: 1.5px solid var(--ink-mute); padding: 0 5px; color: var(--ink-mute); }
.results { position: absolute; left: 0; width: 360px; top: calc(100% + 6px); background: #fff; border: var(--line); box-shadow: var(--sh); z-index: 20; max-height: 360px; overflow: auto; }
.results a { display: block; padding: 10px 12px; border-bottom: 1px solid rgba(21,18,43,.1); font-size: 13px; }
.results a:hover { background: var(--paper); }
.results a span { display: block; color: var(--ink-mute); font-size: 12px; margin-top: 2px; }
.doc-in { animation: fadeUp .35s ease both; }
.docs article h2 { scroll-margin-top: 70px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pager a { border: var(--line); box-shadow: var(--sh-sm); padding: 12px 14px; font-weight: 700; text-decoration: none !important; color: var(--ink) !important; transition: transform .15s, box-shadow .15s; }
.pager a:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.pager a small { display: block; font-weight: 400; font-size: 11.5px; color: var(--ink-mute); }
.pager .next { text-align: right; grid-column: 2; }
.toc { padding: 48px 16px 0 0; position: sticky; top: 48px; align-self: start; }
.toc h6 { font-size: 11px; color: var(--ink-mute); margin-bottom: 10px; }
.toc a { display: block; font-size: 13px; padding: 4px 0 4px 10px; border-left: 2px solid rgba(21,18,43,.15); color: var(--ink-soft); }
.toc a:hover { border-left-color: var(--cta); color: var(--ink); }

/* use cases */
.uc { padding: 48px 24px 96px; }
.uc h1 { font-size: clamp(32px, 4.2vw, 48px); margin-top: 18px; }
.back-link { font-size: 13px; color: var(--ink-soft); }
.back-link:hover { color: var(--ink); }
.uc-h { font-size: 24px; margin: 52px 0 18px; }
.uc-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 52px 0 20px; }
.uc-row .uc-h { margin: 0; }
.filters { display: flex; gap: 8px; }
.story-hero { border: var(--line); box-shadow: var(--sh); background: #fff; }
.story-band { height: 120px; border-bottom: var(--line); display: flex; align-items: center; gap: 14px; padding: 0 22px; font-size: 20px;
  background: var(--lemon) radial-gradient(rgba(21,18,43,.18) 1px, transparent 1.3px) 0 0 / 9px 9px; }
.story-band .logo { font-size: 18px; }
.story-body { padding: 20px 22px 24px; }
.story-body h3 { font-size: clamp(20px, 2.4vw, 26px); margin: 8px 0 16px; }
.stories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.story { border: var(--line); box-shadow: var(--sh); background: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s; }
.story[hidden] { display: none; }
.story:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); }
.story h3 { font-size: 18px; line-height: 1.35; }
.story .link { align-self: flex-start; font-weight: 700; font-size: 13px; border-bottom: 2px solid var(--ink); margin-top: auto; padding: 0; }
.pop-in { animation: pop .3s ease both; }
.lvl { align-self: flex-start; font-family: var(--mono); font-size: 10.5px; font-weight: 700; border: 1.5px solid var(--ink); padding: 1px 6px; }
.lvl.easy { background: var(--mint); } .lvl.medium { background: var(--lemon); } .lvl.hard { background: var(--coral); }
.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 20px; }
.tpl { border: var(--line); box-shadow: var(--sh); background: #fff; display: flex; flex-direction: column; }
.tpl-art { height: 130px; border-bottom: var(--line); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 8px; padding: 14px; }
.tpl-art.c-lemon { background: var(--lemon); } .tpl-art.c-violet { background: var(--violet); } .tpl-art.c-aqua { background: var(--aqua); }
.tpl-art.c-coral { background: var(--coral); } .tpl-art.c-mint { background: var(--mint); }
.pill { font-family: var(--mono); font-size: 11.5px; border: 1.5px solid var(--ink); background: #fff; padding: 3px 8px; box-shadow: var(--sh-sm); animation: float 3s ease-in-out infinite; }
.pill:nth-child(2) { animation-delay: -.8s; } .pill:nth-child(3) { animation-delay: -1.6s; } .pill:nth-child(4) { animation-delay: -2.2s; }
.pill.solid { background: var(--ink); color: #fff; }
.tpl-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl-body h3 { font-size: 18px; }
.tpl-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.tpl-body .btn { align-self: flex-start; margin-top: auto; }
.modal { border: var(--line); box-shadow: 8px 8px 0 var(--ink); padding: 28px; max-width: 560px; width: calc(100% - 32px); margin: auto; color: var(--ink); }
.modal::backdrop { background: rgba(21,18,43,.5); }
.modal[open] { animation: fadeUp .3s ease both; }
.modal h2 { font-size: 22px; margin: 8px 40px 14px 0; line-height: 1.3; }
.modal p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 10px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border: var(--line); font-size: 18px; line-height: 1; }

/* legal */
.legal { max-width: 780px; padding: 56px 24px 96px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin: 6px 0; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; scroll-margin-top: 70px; }
.legal p, .legal li { font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal li b { color: var(--ink); }
.legal a { color: var(--cta); text-decoration: underline; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }
.legal-toc a { text-decoration: none; color: var(--ink); font-size: 12.5px; font-weight: 700; border: 1.5px solid var(--ink); padding: 4px 9px; background: #fff; }
.legal-toc a:hover { background: var(--band); }

@media (max-width: 1100px) { .docs { grid-template-columns: 240px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 960px) { .demo-grid, .acct-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 760px) {
  .docs { grid-template-columns: 1fr; }
  .results { width: 100%; }
  .stories { grid-template-columns: 1fr; }
  .days { gap: 5px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; }
  .account { padding: 40px 16px 80px; }
  .uc, .legal { padding-left: 16px; padding-right: 16px; }
}

/* ---------- auth extras: forgot link, OAuth, template banner ---------- */
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; }
.lbl-row .forgot { font-size: 12px; font-weight: 700; text-decoration: underline; margin: 14px 0 6px; }
.lead-sm { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: -14px 0 14px; }
.oauth .or { margin-top: 20px; }
.oauth-btns { display: flex; flex-direction: column; gap: 10px; }
.oauth-btn { background: #fff; gap: 10px; }
.oauth .muted { margin-top: 10px; } .oauth .muted a { text-decoration: underline; }
.oauth-ico { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--ink); font: 700 10px var(--mono); flex: none; }
.oauth-ico[data-p="google"] { background: var(--lemon); } .oauth-ico[data-p="github"] { background: var(--ink); color: #fff; }
.tpl-banner { border: var(--line); box-shadow: var(--sh-sm); background: var(--lemon); padding: 12px 14px; text-align: left; margin: -8px 0 12px; display: flex; flex-direction: column; gap: 6px; animation: fadeUp .4s ease both; }
.tpl-banner small { font-size: 10.5px; letter-spacing: .06em; }
.tpl-banner span { display: flex; flex-wrap: wrap; gap: 6px; }
.tpl-banner i { font: 11px var(--mono); font-style: normal; background: #fff; border: 1.5px solid var(--ink); padding: 1px 6px; }
.tpl-banner a { font-size: 12px; text-decoration: underline; align-self: flex-start; }
.auth-done { max-width: 420px; text-align: center; }
.auth-done h1 { font-size: 24px; margin: 18px 0 10px; }
.auth-done p { color: var(--ink-soft); line-height: 1.6; margin-top: 6px; }
.auth-done a:not(.btn) { text-decoration: underline; }

/* ---------- notices, tags, small buttons ---------- */
.notice { border: var(--line); box-shadow: var(--sh-sm); padding: 12px 14px; font-size: 14px; margin-top: 22px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; animation: fadeUp .4s ease both; }
.notice.ok { background: #e9fff0; } .notice.warn { background: #fff4d6; }
.demo-card .notice { margin: 0 0 12px; font-size: 13px; }
.tag { font: 700 10.5px var(--mono); text-transform: uppercase; letter-spacing: .04em; border: 1.5px solid var(--ink); padding: 1px 6px; vertical-align: 2px; }
.tag.ok { background: var(--mint); } .tag.warn { background: var(--lemon); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { background: var(--coral); color: var(--ink); }
.link-btn { font-size: 12.5px; font-weight: 700; border: none; background: none; padding: 0; border-bottom: 2px solid var(--ink); cursor: pointer; color: var(--ink); }

/* ---------- account: template, bookings, settings ---------- */
.acct-col { display: flex; flex-direction: column; gap: 24px; }
#tpl-panel h2 { margin: 4px 0 8px; }
#tpl-panel small.mono { font-size: 10.5px; letter-spacing: .06em; color: var(--ink-soft); }
.tpl-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-top: 16px; }
.tpl-cols h4 { font-size: 12px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.crew-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.crew-list li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.crew-list li > span:last-child { display: flex; flex-direction: column; }
.crew-list small { color: var(--ink-mute); font-size: 12px; }
.mini-face { width: 30px; height: 30px; border: 1.5px solid var(--ink); flex: none; }
.mini-face svg { width: 100%; height: 100%; display: block; }
.chan { display: flex; flex-wrap: wrap; gap: 6px; }
.chan .pill { animation: none; }
.tpl-switch { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1.5px dashed rgba(21,18,43,.25); }
.tpl-switch a { text-decoration: underline; }
select { font: inherit; font-size: 13.5px; border: var(--line); background: #fff; padding: 7px 10px; box-shadow: var(--sh-sm); }
.bk-actions { display: flex; gap: 14px; margin-top: 6px; }
.bk-actions a, .bk-actions button { font-size: 12.5px; font-weight: 700; border: none; background: none; padding: 0; border-bottom: 2px solid var(--ink); cursor: pointer; color: var(--ink); }
.bk-actions button { border-color: var(--coral); }
.settings-h { font-size: 24px; margin: 56px 0 18px; }
.settings { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; align-items: start; }
.set-form h3 { font-size: 17px; margin-bottom: 4px; }
.set-form label { display: block; font-size: 12px; font-weight: 700; margin: 12px 0 6px; }
.set-form input { width: 100%; border: var(--line); padding: 9px 12px; font: inherit; font-size: 14px; background: #fff; box-shadow: var(--sh-sm); outline: none; }
.set-form input:focus { box-shadow: 4px 4px 0 var(--cta); }
.set-form input[readonly] { background: var(--paper); }
.set-form .btn { margin-top: 16px; }
.set-form .muted.small { margin-top: 10px; line-height: 1.5; }
.set-form .form-error { margin-top: 10px; }
.set-form.danger { border-color: var(--coral); }
.set-form.danger p { margin-top: 8px; color: var(--ink-soft); line-height: 1.5; }
.logins { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.logins li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.logins .link-btn { margin-left: auto; }
.modal.confirm { max-width: 420px; }
.modal.confirm h2 { font-size: 20px; }
.modal.confirm p { margin: 10px 0 20px; color: var(--ink-soft); line-height: 1.6; }
.modal::backdrop { background: rgba(21,18,43,.45); }
@media (max-width: 560px) { .tpl-cols { grid-template-columns: 1fr; } .acct-head .btn { margin-left: 0 !important; } }
