/* ==========================================================================
   BOOK A CALL — a Notion page about the call, and a Notion Calendar card
   to book it. The page's properties fill in as you choose; your call shows
   up in the calendar as an event; the button always says what is left.
   (Built on notion.css: its tokens, tags, buttons and to-do boxes.)
   ========================================================================== */
.bk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding: clamp(110px, 12vw, 150px) 0 80px; }

/* --- the pitch: a page --------------------------------------------------------- */
.bk-pitch { position: sticky; top: 96px; }
.bk-icon { display: block; width: 64px; height: 64px; margin-bottom: 14px; }
.bk-icon svg { width: 100%; height: 100%; }
.bk-kick { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.bk-kick::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 3px rgba(52, 199, 89, .18); }
.bk-pitch h1 { font: 500 clamp(2.6rem, 5.4vw, 4.4rem)/.98 var(--f-display); letter-spacing: -.035em; color: var(--ink); }
.bk-pitch .lede { margin-top: 16px; max-width: 42ch; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-3); }
.bk-h { margin: 30px 0 12px; font: 600 14px/1.2 var(--f-ui); color: var(--ink); }
.leave { display: grid; gap: 9px; }
.leave li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.leave.in .chk { animation: tick .01s forwards; animation-delay: calc(.3s + var(--i) * .35s); }
.leave.in .chk::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg) scale(0); animation: tickm .3s var(--e-spring) forwards; animation-delay: calc(.3s + var(--i) * .35s); }
.bk-quotes { display: grid; gap: 10px; }
.bq { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 14px 16px; border-radius: 10px; background: var(--sheet); box-shadow: var(--sh-block); }
.bq img, .bq-ini { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; }
.bq-ini { display: grid; place-items: center; font: 600 13px/1 var(--f-ui); color: var(--t-blue); background: var(--t-blue-bg); }
.bq blockquote { margin: 0; font: 400 1.08rem/1.4 var(--f-display); color: var(--ink); }
.bq figcaption { font-size: 12.5px; color: var(--ink-3); }
.faq details { border-radius: 8px; }
.faq summary { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border-radius: 6px; list-style: none; color: var(--ink); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--hover); }
.faq .tri { width: 10px; height: 10px; fill: var(--ink); transition: transform .3s var(--e-spring); }
.faq details[open] .tri { transform: rotate(90deg); }
.faq p { padding: 0 6px 12px 26px; color: var(--ink-3); font-size: 15px; }
.faq a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* --- the card: Notion Calendar ------------------------------------------------- */
.bk-card { position: relative; display: grid; gap: 22px; padding: clamp(18px, 2.4vw, 28px); border-radius: 14px; background: var(--sheet); box-shadow: var(--sh-lift); }
.step { display: grid; gap: 12px; transition: opacity .3s; }
.st-h { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--f-ui); color: var(--ink); }
.st-n { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font: 600 12px/1 var(--f-mono); color: var(--ink-3); background: var(--paper-2); transition: background-color .3s, color .3s; }
.step.done .st-n { background: var(--focus); color: #fff; font-size: 0; }
.step.done .st-n::after { content: ""; width: 10px; height: 5.5px; border: 2.6px solid #fff; border-top: 0; border-right: 0; border-radius: 1px; transform: translateY(-1.5px) rotate(-45deg); animation: st-tick .35s var(--e-spring); }
@keyframes st-tick { from { transform: translateY(-1.5px) rotate(-45deg) scale(.2); } }
.st-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 4px; font: 500 11px/1 var(--f-ui); color: var(--ink-3); background: var(--paper-2); }
.st-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-4); }
.st-live.on { color: #1C3829; background: var(--t-green-bg); }
.st-live.on::before { background: #34C759; animation: live-dot 2s ease-in-out infinite; }
@keyframes live-dot { 50% { opacity: .35; } }
.st-r { margin-left: auto; font: 500 12px/1.2 var(--f-mono); color: var(--ink-4); text-align: right; }

/* 1. kinds: select cards */
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind { display: grid; gap: 6px; padding: 12px 13px; border-radius: 10px; text-align: left; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, background-color .25s, transform .35s var(--e-spring); }
.kind:hover { background: var(--hover-solid); transform: translateY(-1px); }
.kind.on { background: var(--sheet); box-shadow: inset 0 0 0 2px var(--ink), var(--sh-block); }
.k-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.k-top b { font-size: 15px; color: var(--ink); }
.k-top .tag { font-size: 11.5px; white-space: nowrap; }
.k-line { font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.k-dot { flex: none; width: 9px; height: 9px; border-radius: 3px; }
.k-dot.tg-blue { background: #4A90C2; } .k-dot.tg-green { background: #4F9A6E; } .k-dot.tg-purple { background: #9B6FC1; } .k-dot.tg-red { background: #D9625B; } .k-dot.tg-yellow { background: #E2A93B; } .k-dot.tg-gray { background: #A3A19C; }

/* 2. the calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-w { padding: 0 0 4px; text-align: center; font: 500 11px/1 var(--f-mono); color: var(--ink-4); }
.day { position: relative; min-height: 54px; padding: 6px 6px 4px; border-radius: 8px; text-align: left; color: var(--ink-4); background: transparent; transition: background-color .2s, box-shadow .2s, color .2s; }
.day:disabled { cursor: default; }
.day .d-n { font: 500 13px/1 var(--f-ui); }
.day.open { color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.day.open:hover { background: var(--hover-solid); }
.day.on { background: var(--sheet); box-shadow: inset 0 0 0 2px var(--ink); }
.d-dot { position: absolute; right: 7px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #34C759; }
/* the call, as an event on its day */
.ev { position: absolute; left: 3px; right: 3px; bottom: 3px; display: grid; padding: 3px 5px; border-radius: 4px; font-size: 10.5px; line-height: 1.15; text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; animation: ev-in .5s var(--e-spring); }
.ev b { font-weight: 650; }
@keyframes ev-in { from { opacity: 0; transform: translateY(8px) scale(.9); } }

/* 3. times */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; min-height: 40px; }
.slots-ph { grid-column: 1 / -1; font-size: 14px; color: var(--ink-4); align-self: center; }
.slot { display: grid; justify-items: center; gap: 2px; padding: 9px 8px; border-radius: 8px; font: 600 14px/1 var(--f-ui); color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); animation: slot-in .35s var(--e-out) both; animation-delay: calc(var(--i) * 25ms); transition: background-color .2s, box-shadow .2s, color .2s; }
.slot small { font: 500 10.5px/1 var(--f-mono); color: var(--ink-4); }
.slot:hover { background: var(--hover-solid); }
.slot.on { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.slot.on small { color: var(--on-ink); opacity: .6; }
@keyframes slot-in { from { opacity: 0; transform: translateY(6px); } }

/* 4. details: Notion inputs */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fld { display: grid; gap: 6px; font-size: 13px; color: var(--ink-3); }
.fld-wide { grid-column: 1 / -1; }
.fld em { font-style: normal; color: var(--ink-4); }
.fld input, .fld textarea { width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink); resize: vertical; transition: box-shadow .2s, background-color .2s; }
#fNote { min-height: 128px; }
.fld input:focus, .fld textarea:focus { outline: none; background: var(--sheet); box-shadow: inset 0 0 0 2px var(--focus); }

/* what Notion is for: Cal.com's own choices, as select chips */
.uses { display: flex; flex-wrap: wrap; gap: 6px; }
.use { padding: 5px 9px; border-radius: 4px; font-size: 13px; color: var(--t-gray); opacity: .6; transition: opacity .2s, box-shadow .2s, transform .3s var(--e-spring); }
.use:hover { opacity: .9; transform: translateY(-1px); }
.use.on { opacity: 1; box-shadow: 0 0 0 1.5px currentColor; }

/* the button: says what is left; warms up when it is ready */
.bk-go { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 8px 14px; border-radius: 10px; font: 650 15.5px/1 var(--f-ui); color: var(--ink-3); background: var(--paper-2); transition: background-color .3s, color .3s, transform .35s var(--e-spring), box-shadow .3s; }
.bk-go:disabled { cursor: default; }
#goLabel { display: grid; gap: 4px; text-align: center; }
#goLabel small { font: 600 11px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.bk-go svg { transition: transform .35s var(--e-spring); }
.bk-go.ready { color: var(--on-ink); background: var(--ink); box-shadow: 0 10px 24px -8px rgba(25,25,24,.45); }
.bk-go.ready:hover { transform: translateY(-2px); }
.bk-go.ready:hover svg { transform: translateX(4px); }
.bk-fine { margin-top: -12px; font-size: 12.5px; color: var(--ink-4); text-align: center; }

/* requested: the card turns into the call, written up */
.bk-card.sent .step, .bk-card.sent .bk-go, .bk-card.sent .bk-fine { display: none; }
.done { display: grid; gap: 12px; animation: prop-in .5s var(--e-out); }
.done-k { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--f-mono); color: var(--focus); text-transform: uppercase; letter-spacing: .06em; }
.done h3 { font: 500 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.done p { color: var(--ink-3); }
.done-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.way { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 8px; font-weight: 600; color: #fff; background: var(--c, var(--ink)); transition: transform .3s var(--e-spring), filter .2s; }
.way:hover { transform: translateY(-2px); filter: brightness(1.08); }
.way-copy { color: var(--ink); background: var(--paper-2); }
.done-back { justify-self: start; font-size: 14px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .bk { grid-template-columns: minmax(0, 1fr); }
  .bk-pitch { position: static; }
  .bk-card { order: -1; }
}
@media (max-width: 760px) { .bk { padding-top: 32px; } }
@media (max-width: 520px) { .kinds, .fields, .done-go { grid-template-columns: 1fr; } .day { min-height: 46px; } .ev { display: none; } .day.on::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 5px; height: 3px; border-radius: 2px; background: var(--ink); } }
