/* assets/v4/book.css: the /book page (multi-step form card, then the cal.com calendar in the same card). Load after tokens, base, chrome, site.
   Specs: .planning/website-business-rebuild-2026-11-17/12b-wireframes-book.md with the changes in 12c, 13a and 13b.
   Every value is a token. Cut corners come from the bevel recipe in tokens.css; nothing here writes a radius, clip-path or overflow on a .bevel host.
   NEW classes (no shipped equivalent): .bk-opt .bk-card .bk-panel .bk-q .bk-lb .bk-msg .bk-fld .bk-ch .bk-cb .bk-frame .bk-skel .bk-sum */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sym{position:absolute;width:0;height:0}
.i{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:square;stroke-linejoin:miter}
/* one section, one mountain picture: copy, form card and "what happens" block sit in one centered column (owner review 2026-11-18) */
.bk-hero{padding-block:clamp(32px,5vw,72px) clamp(40px,6vw,88px)}
.bk-grid{display:grid;gap:clamp(24px,4vw,56px);grid-template-columns:minmax(0,1fr);align-items:start}
.bk-grid>*{min-width:0}
.bk-copy{justify-self:center;width:100%;max-width:36rem;text-align:center}
.bk-grid.is-cal{grid-template-columns:minmax(0,1fr)}
.bk-grid.is-cal .bk-card{max-width:none}
/* the card: a solid plain frame, never glass (fields need a solid ground) */
.bk-card{--cut:var(--bevel-lg);--band:1px;--bc:var(--chip);--ff:var(--ground);--fc:var(--mu);--fw:2px;display:grid;gap:18px;align-content:start;justify-self:center;width:100%;max-width:36rem;padding:clamp(20px,2.4vw,30px);background:var(--bar);color:var(--tx);scroll-margin-top:110px}
:root.dark .bk-card{--ff:var(--shale)}
.bk-card:focus-visible{--band-color:var(--bc);--ring:var(--band)}
.bk-card [hidden]{display:none}
.bk-panels{display:grid;min-width:0}
.bk-panel{display:grid;gap:18px;min-width:0;margin:0;padding:0;border:0;animation:bk-in .3s ease}
.bk-f{display:grid;gap:6px;min-width:0}
.bk-q{display:block;padding:0;font:700 1.2rem/1.3 var(--fd);color:var(--h)}
.bk-lb{font:600 .95rem var(--fd);color:var(--h)}
.bk-two{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
/* text fields: the wrapper carries the cut and the band, the input sits inside (inputs take no ::after) */
.bk-fld{display:block;background:var(--ff);--cut:var(--bevel-md);--band:var(--fw);--band-color:var(--fc)}
.bk-fld .bevel-in{width:100%;min-height:48px;padding:10px 14px;border:0;outline:0;background:transparent;color:var(--h);font:400 1.0625rem/1.4 var(--fb)}
.bk-fld textarea.bevel-in{min-height:120px;resize:vertical}
.bk-fld select.bevel-in{cursor:pointer}
.bk-fld select.bevel-in option{background:var(--ff);color:var(--h)}
.bk-opt{margin-left:6px;font:400 .9rem var(--fd);color:var(--tx)}
.bk-fld.is-err,.bk-fld.is-err:hover{--band:2px;--band-color:var(--late)}
.bk-fld.is-err:has(:focus-visible){--band-color:var(--focus)}
/* message line: red mark + words + aria-invalid, never color alone */
.bk-msg{display:flex;align-items:flex-start;gap:10px;font:600 .92rem/1.4 var(--fd);color:var(--tx)}
.bk-msg:empty{display:none}
.bk-msg b{flex:none;display:grid;place-items:center;width:22px;height:22px;font:600 .8rem var(--fd);color:var(--white);background:linear-gradient(135deg,var(--ca),var(--cb));--cut:var(--bevel-sm);--bc:var(--ca)}
/* services: whole row is the hit area; the mark is a square with cut corners, never a circle */
.bk-opts{display:grid;gap:12px;min-width:0;margin:0;padding:0;border:0}
.bk-chl{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
.bk-ch{position:relative;display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 16px;cursor:pointer;font:600 1rem var(--fd);color:var(--h);background:var(--ff);--cut:var(--bevel-md);--band:2px;--band-color:var(--fc)}
.bk-ch input{position:absolute;left:0;top:0;width:24px;height:24px;margin:0;opacity:0;pointer-events:none}
.bk-ch:has(input:focus-visible){--band-color:var(--focus);--ring:calc(var(--band) + 2px)}
.bk-cb{flex:none;display:grid;place-items:center;width:24px;height:24px;color:var(--onsel);background:var(--ff);--cut:var(--bevel-sm);--band:2px;--band-color:var(--fc)}
.bk-cb .i{width:16px;height:16px;opacity:0}
/* hover is a quiet neutral lift (lighter edge, lighter surface), never the orange accent; selected is green with a white check */
.bk-ch:hover:not(:has(input:checked)):not(:has(input:focus-visible)){--band-color:var(--mu);background:color-mix(in srgb,var(--ff) 90%,var(--h))}
.bk-ch:hover input:not(:checked)+.bk-cb{--band-color:var(--mu)}
.bk-ch:has(input:checked){--band-color:var(--green-b)}
input:checked+.bk-cb,.bk-cb.on{background:linear-gradient(135deg,var(--green-a),var(--green-b));--band-color:var(--green-b)}
.bk-cb .i{stroke:var(--white)} /* the picture section forces span text color, so the check sets its own stroke */
input:checked+.bk-cb .i,.bk-cb.on .i{opacity:1}
input:focus-visible+.bk-cb{--band-color:var(--focus);--ring:calc(var(--band) + 2px)}
/* buttons and links */
.bk-acts{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px}
.bk-lk{background:none;border:0;padding:0;cursor:pointer}
.bk-lk:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.bk-link{font-weight:600;color:var(--h);text-decoration:underline 2px var(--ac);text-underline-offset:4px;overflow-wrap:anywhere}
.bk-link:hover{color:var(--ac)}
.bk-micro,.bk-load{font:400 .95rem/1.5 var(--fd);color:var(--tx)}
@media(max-width:559px){.bk-card .btn-main{width:100%}}
@media(max-width:479px){.bk-two,.bk-chl{grid-template-columns:minmax(0,1fr)}}
/* calendar state: the card is the full wrap; the frame holds the cal.com iframe inside a bevel that is wider than the cut (13b M1) */
.bk-cal{display:grid;gap:18px;min-width:0}
.bk-frame{--cut:var(--bevel-md);--bc:var(--line);padding:6px}
/* hold the height only while the skeleton shows; once the calendar is ready the frame is as tall as the calendar (no empty strip under it) */
.bk-frame:has(.bk-skel:not([hidden])){min-height:720px}
@media(min-width:1000px){.bk-frame:has(.bk-skel:not([hidden])){min-height:640px}}
#bk-embed{width:100%}
.bk-skel{position:absolute;inset:6px;z-index:1;pointer-events:none;background:var(--wash);--cut:var(--bevel-md);--bc:var(--line);animation:bk-pulse 1.2s ease-in-out infinite alternate}
.bk-fail{display:grid;gap:14px}
.bk-sum{display:grid;gap:8px}
.bk-sum div{display:grid;gap:2px;padding:10px 14px;background:var(--ff);--cut:var(--bevel-md);--bc:var(--chip)}
.bk-sum dt{font:600 .95rem var(--fd);color:var(--h)}
.bk-sum dd{font:400 1rem/1.4 var(--fd);color:var(--tx);overflow-wrap:anywhere}
#bk-cal-h:focus,#bk-cal-h:focus-visible{outline:0} /* the heading takes focus by script for screen readers; it is not a control */
.bk-booked:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
/* the time line at the top of the form */
.bk-takes{margin:0 0 16px;font:600 .95rem/1.4 var(--fd);color:var(--tx)}
/* "what happens on the call": a glass block on the same picture, same column as the card */
.bk-after{--cut:var(--bevel-lg);--band:1px;justify-self:center;width:100%;max-width:36rem;display:grid;gap:14px;padding:clamp(20px,2.4vw,30px)}
.bk-ah{margin:0;font:700 1.3rem/1.3 var(--fd)}
.bk-calls{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.bk-calls li{display:flex;gap:12px;align-items:flex-start;font:400 1.05rem/1.45 var(--fd);color:var(--tx)}
.bk-calls .bk-cb{width:20px;height:20px;margin-top:2px;--bc:var(--green-b)}
.bk-calls .bk-cb .i{width:14px;height:14px}
@keyframes bk-in{from{opacity:0;transform:translateY(6px)}}
@keyframes bk-pulse{to{opacity:.55}}
@media(prefers-reduced-motion:reduce){.bk-panel,.bk-skel{animation:none}}
