/* Valerii & Pauline — booking. Its own voice inside the site: a wide, soft display face
   (Unbounded) for questions and prices, Manrope for everything you read, abstract grounds
   made from our own photographs blurred into colour with film grain, and line icons.
   Steps move like an app: one question per screen, the choice and price stay in the dock. */

.bk-body {
  --bk-display: 'Unbounded', 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --bk-text: 'Manrope', 'Onest', 'Helvetica Neue', Arial, sans-serif;
  --card: #ffffff;
  --rule: #e3e3dd;
  --soft: #efefe9;
  --sage: #dfe9dc;
  --sage-ink: #2f4a37;
  --butter: #f1dd94;
  --ox: #6b1f1f;
  --spring: cubic-bezier(.2, 1.2, .3, 1);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.top nav > a[aria-current] { color: var(--ink); }

.bk { padding: var(--top) 0 150px; font-family: var(--bk-text); font-size: 16px; line-height: 1.5; letter-spacing: 0; }
.bk-col { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 var(--side); }
.bk-col--wide { max-width: none; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* steps: without scripts every step is listed, so every price stays readable */
.js .bk-step { display: none; }
.js .bk-step.is-on { display: block; animation: bk-step .6s var(--ease) both; }
html:not(.js) .bk-gift, html:not(.js) .bk-form, html:not(.js) .bk-done, html:not(.js) .dock, html:not(.js) .bk-progress { display: none; }
@keyframes bk-step { from { opacity: 0; transform: translateY(16px); } }
@keyframes bk-rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }

.bk-progress { display: flex; gap: 4px; max-width: calc(640px - 2 * var(--side)); margin: 14px auto 0; padding: 0; transition: opacity .4s; width: calc(100% - 2 * var(--side)); }
.bk-progress i { position: relative; flex: 1; height: 3px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.bk-progress i::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.bk[data-p="1"] .bk-progress { opacity: 0; }
.bk[data-p="2"] .bk-progress i:nth-child(-n+2)::after,
.bk[data-p="3"] .bk-progress i:nth-child(-n+3)::after,
.bk[data-p="4"] .bk-progress i:nth-child(-n+4)::after,
.bk[data-p="5"] .bk-progress i::after { transform: scaleX(1); }
.bk[data-p="5"] .bk-progress i::after { background: var(--sage-ink); }

.bk-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 15px; color: var(--ink-dim); transition: color .3s; }
.bk-back:hover { color: var(--ink); }
.bk-back .ic { transition: transform .35s var(--ease); }
.bk-back:hover .ic { transform: translateX(-4px); }
.bk-q { margin: 18px 0 20px; font-family: var(--bk-display); font-weight: 500; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
.bk-sub { margin: -8px 0 22px; color: var(--ink-dim); }
.bk-trust { margin: 22px 0 0; font-size: 14px; color: var(--ink-dim); }

/* ---------- 1. Who are you: three doors on abstract grounds ---------- */
.bk-start .bk-q { margin-top: 26px; }
.doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  height: calc(100svh - var(--top) - 250px);
  min-height: 380px;
  max-height: 720px;
}
.door {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  color: #f8f8f6;
  background: #3a3a36;
  animation: bk-door 1s var(--ease) both;
  animation-delay: calc(var(--i) * 90ms);
}
@keyframes bk-door { from { clip-path: inset(100% 0 0 0 round 22px); } to { clip-path: inset(0 round 22px); } }
.door-ground { position: absolute; inset: -35%; z-index: -2; animation: bk-drift 16s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -5s); }
.door-ground img { width: 100%; height: 100%; object-fit: cover; filter: blur(30px) saturate(1.35) contrast(1.05); transform: scale(1.05); transition: transform 1.6s var(--ease); }
@keyframes bk-drift { from { transform: translate(-3%, 2%) rotate(-2deg); } to { transform: translate(4%, -3%) rotate(3deg); } }
.door::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .42; mix-blend-mode: overlay; }
.door::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(16 16 14 / .5), rgb(16 16 14 / 0) 55%); }
.door:hover .door-ground img { transform: scale(1.18); }
.door-from {
  position: absolute; top: 16px; right: 16px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  background: rgb(255 255 255 / .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.door-text { position: absolute; left: 22px; right: 70px; bottom: 22px; display: grid; gap: 6px; }
.door-text strong { font-family: var(--bk-display); font-weight: 500; font-size: clamp(24px, 2.3vw, 36px); letter-spacing: -.025em; line-height: 1.05; }
.door-text small { font-size: 14.5px; opacity: .88; }
.door-arrow { position: absolute; right: 20px; bottom: 24px; width: 28px; height: 28px; stroke-width: 1.1; transition: transform .4s var(--ease); }
.door:hover .door-arrow { transform: translateX(6px); }

/* the offers live only here: three small cards under the doors */
.promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.promo {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start;
  padding: 16px 18px; border-radius: 18px;
  animation: bk-rise .7s var(--ease) both; animation-delay: calc(380ms + var(--i) * 80ms);
}
.promo::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .28; mix-blend-mode: overlay; }
.promo-ic { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; }
.promo strong { font-family: var(--bk-display); font-weight: 500; font-size: 15px; letter-spacing: -.01em; line-height: 1.2; }
.promo small { font-size: 13.5px; line-height: 1.4; opacity: .85; }
.promo--butter { background: var(--butter); color: #2b2510; }
.promo--sage { background: var(--sage); color: #1f3324; }
.promo--ox { background: var(--ox); color: #f6e9e6; transition: transform .4s var(--ease); }
a.promo:hover { transform: translateY(-3px); }
.promo--butter .promo-ic .lid { transform-origin: 8px 5px; animation: bk-lid 3.2s var(--ease) infinite; }
@keyframes bk-lid { 0%, 70%, 100% { transform: none; } 78% { transform: translateY(-1.6px) rotate(-6deg); } 86% { transform: none; } }

/* ---------- 2. Offers: compact cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.is-on .cards li { animation: bk-rise .6s var(--ease) both; animation-delay: calc(80ms + var(--i) * 70ms); }
.card {
  position: relative;
  display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 10px 18px 10px 10px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 20px;
  transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 30px -18px rgb(30 30 28 / .45); }
.card.is-pick { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.card-pic { position: relative; width: 68px; height: 80px; border-radius: 14px; overflow: hidden; isolation: isolate; display: grid; place-items: center; color: #f8f8f6; background: #555; }
.card-pic img { position: absolute; inset: -40%; width: 180%; height: 180%; max-width: none; object-fit: cover; z-index: -2; filter: blur(14px) saturate(1.35); }
.card-pic::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grain), rgb(20 20 18 / .2); opacity: .9; mix-blend-mode: multiply; }
.card-pic::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .45; mix-blend-mode: overlay; }
.card-mark { width: 26px; height: 26px; stroke-width: 1.2; transition: transform .5s var(--spring); }
.card:hover .card-mark { transform: scale(1.12) rotate(-6deg); }
.card-body { display: grid; gap: 4px; min-width: 0; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-top strong, .card-top b { font-family: var(--bk-display); font-weight: 500; font-size: 17px; letter-spacing: -.015em; line-height: 1.2; }
.card-top b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.card-line { font-size: 13.5px; color: var(--ink-dim); line-height: 1.35; }
.card-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; }
.card-facts span { display: inline-flex; align-items: center; gap: 5px; }
.card-facts .ic { width: 15px; height: 15px; color: var(--ink-dim); }
.ic-clock .hand { transform-origin: 8px 8px; transition: transform 1.1s var(--ease); }
.card:hover .ic-clock .hand { transform: rotate(360deg); }
.card-deal { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--sage-ink); font-weight: 500; }
.card-deal .ic { width: 14px; height: 14px; }
.card-pick { position: absolute; top: -10px; right: 16px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--ink); color: var(--bg); }

/* ---------- 3. Gift ---------- */
.gifts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gift {
  position: relative; cursor: pointer;
  display: grid; gap: 14px; align-content: start;
  padding: 16px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--rule);
  transition: border-color .3s, box-shadow .3s;
}
.is-on .gift { animation: bk-rise .6s var(--ease) both; animation-delay: calc(80ms + var(--i) * 70ms); }
.gift input { position: absolute; opacity: 0; pointer-events: none; }
.gift-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--soft); transition: background-color .3s, color .3s; }
.gift-ic .ic { width: 22px; height: 22px; }
.gift-t strong { display: block; font-family: var(--bk-display); font-weight: 500; font-size: 15px; letter-spacing: -.01em; line-height: 1.25; }
.gift-t small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-dim); line-height: 1.35; }
.gift-check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.gift-check .ic { width: 14px; height: 14px; color: var(--bg); stroke-width: 1.8; }
.gift-check .tick { stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .35s var(--ease) .05s; }
.gift:hover { border-color: rgb(42 42 42 / .45); }
.gift:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.gift:has(input:checked) .gift-ic { background: var(--ink); color: var(--bg); }
.gift:has(input:checked) .gift-check { background: var(--ink); border-color: var(--ink); }
.gift:has(input:checked) .tick { stroke-dashoffset: 0; }
.gift:has(input:focus-visible) { outline: 1px solid var(--ink); outline-offset: 3px; }
.gift.just { animation: bk-pop .45s var(--spring); }
@keyframes bk-pop { 40% { transform: scale(.965); } }

/* ---------- 4. When and who ---------- */
.when { margin: 0; padding: 0; border: 0; }
.when legend { padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid rgb(42 42 42 / .28); font-size: 15px; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--spring); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:active + span { transform: scale(.96); }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.when-date { margin-top: 18px; max-width: 260px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 22px; margin-top: 36px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13.5px; color: var(--ink-dim); }
.field em { font-style: normal; opacity: .7; }
.field input {
  width: 100%; padding: 6px 0 10px;
  font: inherit; font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  -webkit-appearance: none; appearance: none;
}
.field input[name="code"] { text-transform: uppercase; letter-spacing: .04em; }
.field input[name="code"]::placeholder { text-transform: none; letter-spacing: 0; }
.field ::placeholder { color: rgb(42 42 42 / .32); }
.field input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field [aria-invalid] { border-bottom-color: #9b2c2c; box-shadow: 0 1px 0 #9b2c2c; }
.bk-error { margin: 18px 0 0; color: #9b2c2c; font-size: 14.5px; }

/* ---------- the dock: the choice and its price, always in reach ---------- */
.dock {
  position: fixed; z-index: 20;
  left: 50%; bottom: max(16px, env(safe-area-inset-bottom, 0px));
  width: min(608px, calc(100% - 2 * var(--side)));
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 8px 8px 8px 8px; border-radius: 22px;
  background: var(--ink); color: var(--bg);
  box-shadow: 0 18px 40px -20px rgb(20 20 18 / .6);
  transform: translate(-50%, 160%);
  transition: transform .6s var(--spring);
}
.dock.is-up { transform: translate(-50%, 0); }
.dock-pic { width: 44px; height: 44px; border-radius: 13px; overflow: hidden; position: relative; isolation: isolate; }
.dock-pic img { position: absolute; inset: -40%; width: 180%; height: 180%; max-width: none; object-fit: cover; filter: blur(10px) saturate(1.3); }
.dock-t { display: grid; min-width: 0; line-height: 1.25; }
.dock-name { font-family: var(--bk-display); font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-gift { font-size: 12.5px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-price { font-family: var(--bk-display); font-weight: 500; font-size: 15px; white-space: nowrap; padding-right: 4px; }
.dock-go {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-radius: 16px;
  font-family: var(--bk-text); font-size: 15px; font-weight: 600;
  background: var(--bg); color: var(--ink); white-space: nowrap;
}
.dock-go .ic { transition: transform .35s var(--ease); }
.dock-go:hover .ic { transform: translateX(4px); }
.dock-go[hidden] { display: none; }

/* ---------- 5. Done ---------- */
.bk-done:focus { outline: none; }
.done-check { width: 60px; height: 60px; margin-top: 34px; padding: 14px; border-radius: 50%; background: var(--sage-ink); color: #f3f6f2; stroke-width: 1.6; animation: bk-pop-in .6s var(--spring) both; }
.done-check .tick { stroke-dasharray: 14; stroke-dashoffset: 14; animation: bk-draw .5s var(--ease) .35s forwards; }
@keyframes bk-pop-in { from { transform: scale(.4); opacity: 0; } }
@keyframes bk-draw { to { stroke-dashoffset: 0; } }
.done-msg { margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; font: inherit; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; background: var(--card); border: 1px solid var(--rule); }
.done-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid rgb(42 42 42 / .3); font-family: var(--bk-text); font-size: 15px; font-weight: 500; transition: background-color .25s, border-color .25s; }
.btn:hover { border-color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--quiet { border-color: transparent; color: var(--ink-dim); }
.ref {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 34px; padding: 22px; border-radius: 22px;
  background: var(--sage); color: #1f3324;
  animation: bk-rise .7s var(--ease) .3s both;
}
.ref::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .25; mix-blend-mode: overlay; }
.ref > .ic { width: 26px; height: 26px; }
.ref > .ic .lid { transform-origin: 8px 5px; animation: bk-lid 3.2s var(--ease) 1s infinite; }
.ref-h { margin: 10px 0 2px; font-size: 14px; }
.ref-code { margin: 0 0 8px; font-family: var(--bk-display); font-weight: 500; font-size: 34px; letter-spacing: .03em; }
.ref-text { margin: 0 0 16px; font-size: 14px; line-height: 1.45; max-width: 34em; }
.ref .btn { border-color: rgb(31 51 36 / .35); }

.bk-foot { padding-top: clamp(90px, 14vh, 160px); }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; height: auto; min-height: 0; max-height: none; }
  .door { height: max(150px, calc((100svh - var(--top) - 180px) / 3)); }
  .door-text { left: 18px; bottom: 16px; gap: 3px; }
  .door-text strong { font-size: 25px; }
  .door-text small { font-size: 13.5px; }
  .door-from { top: 12px; right: 12px; }
  .door-arrow { right: 16px; bottom: 18px; width: 24px; }
  .promos { grid-template-columns: 1fr; }
  .card { grid-template-columns: 58px minmax(0, 1fr); gap: 13px; padding: 9px 14px 9px 9px; }
  .card-pic { width: 58px; height: 70px; }
  .card-top strong, .card-top b { font-size: 15.5px; }
  .gifts { gap: 8px; }
  .gift { padding: 14px; gap: 12px; }
  .fields { grid-template-columns: 1fr; margin-top: 30px; }
  .dock { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .dock-pic { width: 40px; height: 40px; }
  .dock-price { display: none; }
  .dock-name::after { content: ' · ' attr(data-price); }
  /* on the last step the button takes the whole dock */
  .dock:has(.dock-submit:not([hidden])) { grid-template-columns: 40px minmax(0, 1fr); }
  .dock:has(.dock-submit:not([hidden])) .dock-t { display: none; }
  .dock-submit { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .js .bk-step.is-on, .door, .door-ground, .promo, .is-on .cards li, .is-on .gift, .ref, .done-check, .gift.just { animation: none; }
  .done-check .tick { stroke-dashoffset: 0; animation: none; }
  .promo-ic .lid, .ref > .ic .lid { animation: none; }
  .dock, .card, .card-mark, .ic-clock .hand { transition: none; }
}
