/* Maison LÉA — new sections (moodboard 2): legal, cookie bar, 404, voucher, intro offer,
   blog, instructor pages, reviews carousel, "Пиши ни" button, spots pill, language menu.
   Loaded after styles.css and reuses its tokens. */

/* ---------- Spots left: pill with dot (moodboard 2, mockup A) ---------- */
.bk-slot small, .slot .spots {
  display: inline-flex; align-items: center; gap: 5px; justify-self: center;
  font-size: 11px; font-weight: 700; line-height: 1; color: var(--text);
  background: var(--blush); border-radius: 999px; padding: 4px 8px; margin-top: 4px;
}
.slot .spots { font-size: 12px; margin-top: 0; padding: 5px 10px; }
.bk-slot small::before, .slot .spots::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mauve); flex: none; }
.slot .spots.full, .bk-slot[disabled] small { background: var(--line); color: var(--text); }
.slot .spots.full::before, .bk-slot[disabled] small::before { background: var(--muted); }
.bk-slot[aria-selected="true"] small { background: rgba(250, 248, 244, .16); color: var(--white); }
.bk-slot[aria-selected="true"] small::before { background: var(--rose); }

/* ---------- Language menu in the header (mockup B) ---------- */
.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  font: 600 14px var(--body); color: var(--text); padding: 9px 10px; border-radius: 10px;
}
.lang-btn:hover, .lang-menu.open .lang-btn { background: var(--blush); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-btn .chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s; }
.lang-menu.open .chev { transform: translateY(1px) rotate(-135deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 170px;
  list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  animation: menu-in .22s cubic-bezier(.2, .7, .2, 1) both;
}
.lang-list[hidden] { display: none; }
.lang-list a, .lang-list span {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.lang-list a[aria-current="true"] { background: var(--blush); }
.lang-list span { color: var(--text); cursor: default; }
.lang-list small { font-size: 11px; font-weight: 700; color: var(--text); }
@media (max-width: 1080px) { .lang-btn .lbl { display: none; } .lang-btn { padding: 9px 8px; } }
/* no room next to the hamburger on phones; English is not live yet anyway */
@media (max-width: 600px) { .lang-menu { display: none; } }

/* ---------- "Пиши ни" floating contact (mockup B) — bottom-left, the Пили bot owns bottom-right ---------- */
.reach {
  position: fixed; left: clamp(14px, 3vw, 28px); bottom: calc(clamp(14px, 3vw, 28px) + var(--bar-h, 0px)); z-index: 89;
  display: grid; gap: 8px; justify-items: start; transition: bottom .3s, translate .35s cubic-bezier(.2, .7, .2, 1), opacity .3s;
}
/* over a button or link (extras.js checkDark): mostly off the left edge, the icon still peeks; back on hover / focus */
.reach.is-aside:not(.open):not(:hover):not(:focus-within) { translate: calc(-100% + 22px) 0; opacity: .7; }
/* Main button: pill "Пиши ни" morphs into a round × (label folds away, icons swap with a turn) */
.reach-main {
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  position: relative; display: inline-flex; align-items: center; border: 0; cursor: pointer;
  height: 50px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--mauve); color: var(--white); font: 700 14px var(--body);
  box-shadow: 0 14px 30px -14px rgba(119, 99, 84, .9);
  transition: background .35s ease, padding .45s var(--spring), transform .25s var(--spring), box-shadow .3s;
}
.reach-main:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(119, 99, 84, .95); }
.reach-main:active { transform: scale(.94); }
.reach-main .ico { position: relative; width: 18px; height: 18px; flex: none; }
.reach-main .ico > span { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .25s ease, transform .45s var(--spring); }
.reach-main svg { width: 18px; height: 18px; fill: currentColor; }
.reach-main .i-close { opacity: 0; transform: rotate(-90deg) scale(.4); }
.reach-main .lbl {
  display: inline-block; overflow: hidden; white-space: nowrap; max-width: 90px; margin-left: 8px;
  transition: max-width .45s cubic-bezier(.2, .7, .2, 1), margin .45s cubic-bezier(.2, .7, .2, 1), opacity .2s ease .1s;
}
.reach.open .reach-main { background: var(--cocoa); padding: 0 16px; }
.reach.open .reach-main .i-chat { opacity: 0; transform: rotate(90deg) scale(.4); }
.reach.open .reach-main .i-close { opacity: 1; transform: none; }
.reach.open .reach-main .lbl { max-width: 0; margin-left: 0; opacity: 0; transition-delay: 0s; }

/* gentle attention ring, twice, a moment after load */
.reach-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(208, 185, 167, .55); pointer-events: none; }
.reach.hello:not(.open) .reach-main::after { animation: reach-ring 1.8s ease-out 2; }
@keyframes reach-ring { 0% { box-shadow: 0 0 0 0 rgba(208, 185, 167, .55); } 100% { box-shadow: 0 0 0 16px rgba(208, 185, 167, 0); } }

/* Options rise from the button one by one (nearest first) and drop back top-first */
.reach-opts { display: grid; gap: 8px; justify-items: start; visibility: hidden; transition: visibility 0s linear .5s; }
/* the box itself never catches taps: while closed it is an invisible 140 × 150 px area (on phones the button is in the dock) */
.reach { pointer-events: none; }
.reach-main, .reach.open .reach-opts { pointer-events: auto; }
.reach.open .reach-opts { visibility: visible; transition-delay: 0s; }
.reach-opts a {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--white); color: var(--text); font: 700 14px var(--body);
  padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--line); box-shadow: var(--shadow);
  transform-origin: 24px 100%;
  opacity: 0; transform: translateY(calc(16px + var(--i, 0) * 10px)) scale(.6);
  transition: opacity .18s ease, transform .3s cubic-bezier(.4, 0, 1, 1), border-color .2s, background .2s;
  transition-delay: calc((2 - var(--i, 0)) * 35ms);
}
.reach.open .reach-opts a {
  opacity: 1; transform: none;
  transition: opacity .25s ease, transform .5s cubic-bezier(.34, 1.56, .64, 1), border-color .2s, background .2s;
  transition-delay: calc(var(--i, 0) * 60ms + 40ms);
}
.reach-opts a:hover { border-color: var(--rose); background: var(--shell); }
.reach-opts a:hover i { transform: scale(1.08) rotate(-6deg); }
.reach-opts i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.reach-opts i svg { width: 18px; height: 18px; fill: #FAF8F4; }
@media (max-width: 480px) {
  .reach-main { padding: 0 16px; }
  .reach-main .lbl { max-width: 0; margin-left: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .reach-main::after { animation: none !important; } }

/* ---------- Cookie bar (mockup A) ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: var(--cocoa); color: var(--shell);
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  animation: sheet-up .4s cubic-bezier(.2, .7, .2, 1) both;
}
.cookie-bar p { font-size: 14px; max-width: 70ch; color: rgba(250, 248, 244, .85); }
.cookie-bar a { color: var(--shell); text-decoration: underline; }
.cookie-bar .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-bar button { font: 700 14px/1 var(--body); padding: 12px 20px; border-radius: 999px; cursor: pointer; border: 1px solid var(--shell); }
.cookie-bar .ok { background: var(--rose); border-color: var(--rose); color: var(--text); }
.cookie-bar .ok:hover { background: var(--blush); border-color: var(--blush); }
.cookie-bar .min { background: transparent; color: var(--shell); }
.cookie-bar .min:hover { background: rgba(250, 248, 244, .1); }
.has-cookie-bar .pili { bottom: calc(clamp(14px, 3vw, 28px) + var(--bar-h, 0px)); transition: bottom .3s; }

/* ---------- Footer additions ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a, .footer-legal button { color: inherit; text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-legal a:hover, .footer-legal button:hover { color: var(--text); }
.footer-top:has(.footer-col + .footer-col + .footer-col) { grid-template-columns: 1.4fr auto auto auto; }
@media (max-width: 760px) { .footer-top:has(.footer-col + .footer-col + .footer-col) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Legal pages (ClickUp: policies card + document) ---------- */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.legal-nav {
  position: sticky; top: 110px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: grid; gap: 14px; box-shadow: var(--shadow);
}
.legal-nav h2 { font-size: 20px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.legal-nav a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 1px dashed var(--line); }
.legal-nav li:last-child a { border-bottom: 0; }
.legal-nav a:hover { background: var(--shell); }
.legal-nav a[aria-current="page"] { background: var(--mauve); color: var(--white); border-color: transparent; }
.legal-nav .toc { border-top: 1px solid var(--line); padding-top: 12px; }
.legal-nav .toc a { font-weight: 500; font-size: 13px; color: var(--text); padding: 6px 12px; border: 0; }
.legal-doc { max-width: 72ch; display: grid; gap: 16px; }
.legal-doc h1 { font-size: clamp(32px, 4.4vw, 48px); text-align: center; }
.legal-doc .eff { text-align: center; color: var(--text); font-size: 14px; font-style: italic; }
.legal-doc .tldr { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.legal-doc h2 { font-size: 24px; margin-top: 20px; scroll-margin-top: 110px; }
.legal-doc p, .legal-doc li { color: var(--text); }
.legal-doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-doc strong { color: var(--text); }
.legal-doc a { color: var(--text); }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--white); border-radius: 12px; overflow: hidden; }
.legal-doc th, .legal-doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-doc th { font-weight: 700; color: var(--text); }
.legal-doc .note { font-size: 13px; background: var(--blush); color: var(--text); padding: 12px 16px; border-radius: 12px; }
@media (max-width: 860px) { .legal { grid-template-columns: minmax(0, 1fr); } .legal-nav { position: static; } .legal-nav .toc { display: none; } }

/* ---------- 404 (Lassie: icon + serif line + button) ---------- */
.lost { min-height: 62vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; padding-block: 48px; }
.lost svg { width: 64px; height: 64px; fill: var(--mauve); }
.lost h1 { font-size: clamp(34px, 5vw, 56px); max-width: 16ch; }
.lost p { color: var(--text); font-size: 15px; }
.lost p b { color: var(--text); font-weight: 700; }
.lost .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ---------- Voucher: order form beside the live gift card (the same card as on the home page) ---------- */
.v-buy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(28px, 5vw, 64px); align-items: start; max-width: 940px; margin: 0 auto; }
.v-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.v-form h2 { font-size: clamp(26px, 3vw, 34px); }
.v-form .sub { color: var(--text); font-size: 15px; margin-top: 4px; }
.v-group { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.v-group[hidden] { display: none; }
.v-group legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.v-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; font-size: 15px; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.v-opt:hover { border-color: var(--rose); }
.v-opt span { display: flex; align-items: center; gap: 12px; }
.v-opt input { accent-color: var(--mauve); width: 18px; height: 18px; margin: 0; }
.v-opt em { font-style: normal; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.v-opt:has(input:checked) { border-color: var(--mauve); background: var(--shell); box-shadow: inset 0 0 0 1px var(--mauve); }
.v-form .field input, .v-form .field textarea { background: var(--white); border-color: var(--line); color: var(--text); }
.v-form .field textarea { min-height: 84px; }
.v-form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v-form .btn { justify-content: center; }
.v-form .form-msg { color: var(--text); }
.v-preview { position: sticky; top: 120px; display: grid; gap: 14px; }
/* the home page gift card, sized for the column beside the form */
.v-preview .gift-stage { width: 100%; height: auto; aspect-ratio: 1 / .78; margin-top: 0; }
.v-preview p { font-size: 13px; color: var(--text); }
.v-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; counter-reset: st; }
.v-steps li { list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; counter-increment: st; }
.v-steps li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; background: var(--blush); color: var(--text); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.v-steps b { font-size: 16px; }
.v-steps span { font-size: 14px; color: var(--text); }
@media (max-width: 820px) {
  .v-buy { grid-template-columns: minmax(0, 1fr); }
  .v-preview { position: static; order: -1; max-width: 360px; }
  .v-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .v-form .two { grid-template-columns: 1fr; } }

/* ---------- Intro offer (Blue Apron: photo band with a centred card) ---------- */
.offer-band {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: clamp(420px, 52vw, 560px);
  display: grid; place-items: center; padding: clamp(20px, 4vw, 48px);
  background: url(../images/studio-reception.webp) center 40% / cover;
}
.offer-band::before { content: ""; position: absolute; inset: 0; background: rgba(119, 99, 84, .18); }
.offer-card {
  position: relative; background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 64px);
  display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 520px; box-shadow: 0 30px 60px -30px rgba(119, 99, 84, .55);
}
.offer-card h1 { font-size: clamp(32px, 4.4vw, 48px); color: var(--text); }
.offer-card .price-line { font-size: 17px; color: var(--text); }
.offer-card .price-line b { color: var(--text); font-size: 22px; }
.offer-card .btn { margin-top: 8px; padding-inline: 32px; }
.offer-card small { font-size: 14px; line-height: 1.5; color: var(--text); max-width: 42ch; }
.incl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.incl div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; }
.incl b { font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--text); line-height: 1; }
.incl span { font-size: 14px; color: var(--text); }
@media (max-width: 860px) { .incl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Blog list (Patreon: tabs + clean grid with dates) ---------- */
.blog-tabs { display: flex; gap: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.blog-tabs button { background: none; border: 0; padding: 10px 0; cursor: pointer; font: 600 15px var(--body); color: var(--text); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.blog-tabs button[aria-pressed="true"] { color: var(--text); border-color: var(--cocoa); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.post-card { display: grid; gap: 12px; text-decoration: none; align-content: start; }
.post-card[hidden] { display: none; }
.post-card .ph { aspect-ratio: 16 / 10; min-height: 0; }
.post-card .ph img { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .ph img { transform: scale(1.04); }
.post-card time, .post-meta time { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.post-card h2 { font-family: var(--body); font-weight: 800; font-size: 19px; line-height: 1.3; }
.post-card:hover h2 { color: var(--text); }
.post-card p { font-size: 14px; color: var(--text); }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .post-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Blog post (Superhuman: big title, author row + share, full-width cover) ---------- */
.post-head { max-width: 900px; margin: 0 auto; padding-block: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 48px); display: grid; gap: 22px; }
.post-head .back { font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
.post-head h1 { font-size: clamp(34px, 5vw, 56px); }
.post-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.author { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.author b { display: block; font-size: 15px; }
.author span { font-size: 13px; color: var(--text); }
.share { display: flex; gap: 6px; }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--text); cursor: pointer; }
.share a:hover, .share button:hover { color: var(--text); border-color: var(--rose); }
.share svg { width: 16px; height: 16px; fill: currentColor; }
.post-cover { max-width: 1400px; margin: 0 auto; padding-inline: clamp(0px, 3vw, 40px); }
.post-cover .ph { aspect-ratio: 21 / 9; border-radius: clamp(0px, 2vw, 24px); }
.post-body { max-width: 68ch; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter) 24px; display: grid; gap: 18px; font-size: 17px; line-height: 1.75; }
.post-body h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 18px; }
.post-body ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.post-body .callout { background: var(--white); border-left: 3px solid var(--rose); border-radius: 0 14px 14px 0; padding: 16px 20px; font-size: 16px; }
.post-body .callout b { color: var(--text); }
.post-end { max-width: 68ch; margin: 0 auto; padding: 0 var(--gutter); }
.post-end .cta { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.post-end .cta h2 { font-size: 24px; }
.post-end .cta p { color: var(--text); font-size: 15px; }
.more { padding-top: clamp(56px, 8vw, 96px); }

/* ---------- Instructor page (Portrait: header + bento of photos and cards) ---------- */
.coach { max-width: 1040px; margin: 0 auto; padding-block: clamp(28px, 5vw, 56px) clamp(56px, 8vw, 96px); }
.coach-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.coach-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.coach-head img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--blush); }
.coach-head h1 { font-size: clamp(30px, 4vw, 42px); }
.coach-head p { color: var(--text); font-size: 15px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 14px; }
.bento > * { border-radius: var(--radius); overflow: hidden; position: relative; }
.bento .ph { min-height: 0; height: 100%; }
.bento .tall { grid-row: span 2; }
.bento .wide { grid-column: span 2; }
.bento .big { grid-column: span 2; grid-row: span 2; }
.bento .tile { background: var(--shell); border: 1px solid var(--line); padding: 18px; display: grid; gap: 8px; align-content: start; overflow: auto; }
.bento .tile h2 { font-size: 20px; }
.bento .tile p, .bento .tile li { font-size: 14px; color: var(--text); }
.bento .tile ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.bento .tile.dark { background: var(--cocoa); border-color: var(--cocoa); color: var(--white); align-content: space-between; }
.bento .tile.dark p { color: var(--blush); }
.bento .tile.rose { background: var(--blush); border-color: var(--blush); }
.bento .cap { position: absolute; left: 10px; bottom: 10px; background: rgba(119, 99, 84, .72); color: var(--white); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 9px; backdrop-filter: blur(6px); }
.coach-classes { display: grid; gap: 6px; }
.coach-classes li { list-style: none; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text); border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.coach-classes { padding: 0 !important; }
.coach-classes small { color: var(--text); }
.coach-others { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.coach-others a { display: flex; align-items: center; gap: 8px; text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 5px; font-size: 14px; font-weight: 700; }
.coach-others a:hover { border-color: var(--rose); }
.coach-others img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
@media (max-width: 760px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(140px, auto); }
  .bento .big { grid-column: span 2; }
  .bento .tile { overflow: visible; }
}
.member { text-decoration: none; transition: transform .25s; }
a.member:hover { transform: translateY(-3px); }
a.member .member-body span::after { content: " →"; color: var(--rose); }

/* ---------- Reviews carousel (Fresha: star cards + arrows) ---------- */
.reviews-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.reviews-head .arrows { display: flex; gap: 8px; }
.reviews-head .arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: grid; place-items: center; color: var(--text); }
.reviews-head .arrows button:hover:not([disabled]) { border-color: var(--rose); }
.reviews-head .arrows button[disabled] { opacity: .4; cursor: default; }
.reviews-head .arrows svg { width: 16px; height: 16px; }
.reviews {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(300px, 82%); scroll-snap-align: start; background: var(--white); border-radius: var(--radius); padding: 22px;
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; min-height: 280px;
}
.review .stars { color: var(--text); letter-spacing: 3px; font-size: 18px; }
.review h3 { font-family: var(--body); font-weight: 800; font-size: 18px; line-height: 1.3; }
.review p { font-size: 14px; color: var(--text); }
.review .who { display: flex; align-items: center; gap: 10px; }
.review .who img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.review .who b { display: block; font-size: 14px; }
.review .who span { font-size: 12px; color: var(--text); }

/* ---------- Booking card: centred heading + smooth changes ---------- */
.bk-head { text-align: center; }
.bk-head .bk-sub { max-width: 40ch; margin-inline: auto; }

/* ---------- Booking card: compact and symmetric ----------
   progress as a hairline at the very top · three equal class types · exactly one week of equal days
   (swipe for the next) · one row per class (time | class · coach | spots), no fixed empty box ·
   full-width "Book" with the "none of these" link under it */
.bk-card { gap: 16px; }
.bk-card .bk-progress { order: -1; margin: calc(-1 * clamp(20px, 3.4vw, 30px) + 14px) 18% 2px; }
.bk-card .bk-foot { order: 5; padding-top: 0; border-top: 0; }
.bk-card .bk-none { order: 6; margin-top: -6px; padding: 4px 8px; background: none; border: 0; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.bk-card .bk-none:hover { background: none; color: var(--mauve); }
.bk-back[hidden] { display: none; }
.bk-foot .bk-go { flex: 1; }

.bk-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-type:last-child { grid-column: auto; grid-auto-flow: row; }
.bk-type { padding: 9px 4px; }

.bk-days { --gap: 8px; gap: var(--gap); margin-inline: 0; padding: 2px 0; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
.bk-days.has-more { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.bk-day { flex: 0 0 calc((100% - 6 * var(--gap)) / 7); padding: 8px 0 9px; }
.bk-day:nth-child(7n + 1) { scroll-snap-align: start; }
.bk-day:not(:nth-child(7n + 1)) { scroll-snap-align: none; }

.bk-slots { grid-template-columns: minmax(0, 1fr); height: auto; max-height: 236px; gap: 6px; }
.bk-slot {
  grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; justify-items: start; text-align: left;
  gap: 12px; padding: 10px 12px 10px 16px;
}
.bk-slot b { font-size: 16px; }
.bk-slot span { justify-self: stretch; }
.bk-slot small { justify-self: end; }
.bk-empty { height: auto; padding: 28px 12px; border: 1px dashed var(--line); border-radius: 14px; }
/* step 2: summary as one row, phone + email side by side, aligned checkboxes, back + confirm as a pair */
.bk-sum { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; }
.bk-sum-date {
  display: grid; justify-items: center; width: 54px; padding: 6px 0; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line); line-height: 1.1;
}
.bk-sum-date span { font-size: 11px; font-weight: 600; color: var(--text); text-transform: lowercase; }
.bk-sum-date span:first-child { text-transform: none; }
.bk-sum-date b { font-family: var(--display); font-weight: 400; font-size: 24px; }
.bk-sum-main { display: grid; gap: 2px; min-width: 0; }
.bk-sum-main b { font-size: 15.5px; }
.bk-sum-main span { font-size: 13.5px; }
.bk-sum-price { display: grid; justify-items: end; gap: 2px; text-align: right; }
.bk-sum-price b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; }
.bk-sum-price span { font-size: 11.5px; white-space: nowrap; }
/* the summary as a ticket on dark silk: cream date tile, white type, price torn off by a dashed line with notches */
.bk-card .bk-sum {
  position: relative; border: 0; border-radius: 18px; color: #fff; padding: 14px 20px 14px 14px;
  background-color: #776354; background-image: var(--silk-layer); background-size: 720px auto; background-position: 40% 50%;
  box-shadow: 0 14px 28px -16px rgba(60, 46, 37, .75);
}
.bk-card .bk-sum::before, .bk-card .bk-sum::after {
  content: ""; position: absolute; right: 108px; width: 16px; height: 16px; border-radius: 50%; background: var(--white);
}
.bk-card .bk-sum::before { top: -8px; }
.bk-card .bk-sum::after { bottom: -8px; }
.bk-card .bk-sum-date { background: var(--shell); border: 0; box-shadow: 0 6px 14px -8px rgba(30, 22, 17, .6); color: var(--text); }
.bk-card .bk-sum-date span { color: var(--mauve); }
.bk-card .bk-sum-date b { color: var(--text); }
.bk-card .bk-sum-main b { color: #fff; font-size: 16px; text-shadow: 0 1px 2px rgba(40, 31, 25, .5); }
.bk-card .bk-sum-main span { color: var(--blush); }
.bk-card .bk-sum-price { width: 88px; align-self: stretch; align-content: center; justify-items: center; text-align: center; padding-left: 16px; border-left: 1.5px dashed rgba(250, 248, 244, .45); }
.bk-card .bk-sum-price b { color: #fff; font-size: 28px; text-shadow: 0 1px 2px rgba(40, 31, 25, .5); }
.bk-card .bk-sum-price span { color: var(--blush); white-space: normal; line-height: 1.25; }
@media (max-width: 480px) {
  .bk-card .bk-sum { padding: 12px 14px 12px 10px; }
  .bk-card .bk-sum::before, .bk-card .bk-sum::after { right: 76px; }
  .bk-card .bk-sum-price { width: 62px; padding-left: 12px; }
  .bk-card .bk-sum-price b { font-size: 24px; }
  .bk-card .bk-sum-date { width: 44px; }
  .bk-card .bk-sum-date b { font-size: 20px; }
  .bk-card .bk-sum-main b { font-size: 14.5px; }
  .bk-card .bk-sum-main span { font-size: 12.5px; }
}

.bk-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 12px; }
.bk-fields > * { grid-column: 1 / -1; }
.bk-fields > .field:nth-child(2), .bk-fields > .field:nth-child(3) { grid-column: auto; }
.bk-fields .field { gap: 6px; }
.bk-card .check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 13.5px; line-height: 1.45; }
.bk-card .check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--mauve); }
.bk-card .bk-msg { min-height: 0; }

.bk-back:not([hidden]) {
  min-height: var(--btn-h, 48px); padding: 0 22px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); font-weight: 600; transition: border-color .2s, background .2s;
}
.bk-back:not([hidden]):hover { border-color: var(--rose); background: var(--shell); }
@media (max-width: 480px) {
  .bk-fields { grid-template-columns: minmax(0, 1fr); }
  .bk-fields > .field:nth-child(2), .bk-fields > .field:nth-child(3) { grid-column: 1 / -1; }
  .bk-sum { gap: 10px; padding: 10px 12px 10px 10px; }
  .bk-sum-price span { display: none; }
}
@media (max-width: 480px) {
  .bk-days { --gap: 5px; }
  .bk-day b { font-size: 15px; }
  .bk-type b { font-size: 13px; }
  :root .bk-type span { font-size: 10.5px; letter-spacing: -.01em; }
}

/* selection moves softly instead of snapping */
.bk-day, .bk-slot { transition: background .35s ease, color .35s ease, border-color .35s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease; }
.bk-slot[aria-selected="true"] { box-shadow: 0 12px 24px -14px rgba(119, 99, 84, .7); }
.bk-slot b, .bk-slot span, .bk-slot small { transition: color .35s ease, background .35s ease; }
.bk-day:active, .bk-slot:active:not([disabled]) { transform: scale(.95); }

/* new day: the chosen pill pops, times rise in one after another */
.bk-anim-day .bk-day[aria-selected="true"] { animation: bk-pop .45s cubic-bezier(.34, 1.56, .64, 1); }
.bk-anim-day .bk-slot, .bk-anim-day .bk-empty { animation: bk-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.bk-anim-day .bk-slot:nth-child(2) { animation-delay: .04s; }
.bk-anim-day .bk-slot:nth-child(3) { animation-delay: .08s; }
.bk-anim-day .bk-slot:nth-child(4) { animation-delay: .12s; }
.bk-anim-day .bk-slot:nth-child(5) { animation-delay: .16s; }
.bk-anim-day .bk-slot:nth-child(n+6) { animation-delay: .2s; }
.bk-anim-day .bk-go span { animation: bk-fade .35s ease both; }

/* step 1 ↔ step 2: content slides in, progress bar grows */
.bk-anim-step .bk-head, .bk-anim-step .booking-summary, .bk-anim-step .bk-fields > *, .bk-anim-step .bk-days, .bk-anim-step .bk-slots, .bk-anim-step .bk-none {
  animation: bk-rise .5s cubic-bezier(.2, .7, .2, 1) both;
}
.bk-anim-step .booking-summary, .bk-anim-step .bk-days { animation-delay: .05s; }
.bk-anim-step .bk-fields > :nth-child(1), .bk-anim-step .bk-slots { animation-delay: .1s; }
.bk-anim-step .bk-fields > :nth-child(2) { animation-delay: .14s; }
.bk-anim-step .bk-fields > :nth-child(3) { animation-delay: .18s; }
.bk-anim-step .bk-fields > :nth-child(n+4), .bk-anim-step .bk-none { animation-delay: .22s; }
.bk-anim-step .bk-progress i { animation: bk-grow .6s cubic-bezier(.2, .7, .2, 1) both; }

/* the button text refreshes with a small nudge when a time is picked */
.bk-go.bk-bump span { animation: bk-fade .35s ease both; }
.bk-go.bk-bump { animation: bk-pop .4s cubic-bezier(.34, 1.56, .64, 1); }

@keyframes bk-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes bk-fade { from { opacity: 0; transform: translateY(4px); } }
@keyframes bk-pop { 0% { transform: scale(.92); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes bk-grow { from { transform: scaleX(.5); transform-origin: left; } to { transform-origin: left; } }
@media (prefers-reduced-motion: reduce) { [class*="bk-anim-"] *, .bk-go.bk-bump, .bk-go.bk-bump span { animation: none !important; } }

/* header: keep "Maison LÉA" clear of the menu icon on small phones */
@media (max-width: 420px) { .brand { font-size: 18px; padding-right: 6px; } .menu-toggle { margin-left: 4px; } }

/* Schedule page: intro text sits in the vertical middle of the booking card (grid keeps align-items:start) */
@media (min-width: 901px) { .bk-split > .bk-intro { align-self: center; } }

/* Header with 6 nav items: tighten between the hamburger breakpoint and wide screens */
@media (900px < width <= 1100px) {
  .pill .ig { display: none; }
  .nav-links a { padding: 9px 10px; }
  .brand { font-size: 20px; padding-right: 8px; }
}
@media (900px < width <= 980px) {
  .lang-menu { display: none; }
  .nav-links a { padding: 9px 8px; font-size: 13.5px; }
}

/* Cookie bar on liquid silk (same WebGL shader as hero / CTA band) */
.cookie-bar:has(.liquid-bg) { isolation: isolate; overflow: hidden; background: #776354; }
.cookie-bar:has(.liquid-bg)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to right, rgba(80, 64, 52, .45), rgba(119, 99, 84, .2) 55%, rgba(80, 64, 52, .35));
}
.cookie-bar:has(.liquid-bg) p { color: var(--shell); text-shadow: 0 1px 10px rgba(80, 64, 52, .6), 0 1px 2px rgba(80, 64, 52, .4); }
.cookie-bar:has(.liquid-bg) .min {
  background: rgba(80, 64, 52, .55); border-color: rgba(250, 248, 244, .9); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cookie-bar:has(.liquid-bg) .min:hover { background: rgba(80, 64, 52, .75); }
.cookie-bar:has(.liquid-bg) .ok { background: var(--shell); border-color: var(--shell); color: var(--text); box-shadow: 0 4px 14px -6px rgba(80, 64, 52, .6); }
.cookie-bar:has(.liquid-bg) .ok:hover { background: #fff; border-color: #fff; }

/* ---------- Skip link (shows only on keyboard focus) ---------- */
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: 999px; background: var(--cocoa); color: var(--white);
  font: 600 14px/1 var(--body); text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }
main:focus { outline: none; }

/* ---------- "Open now" status ---------- */
.open-now { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.open-now i { width: 8px; height: 8px; border-radius: 50%; background: #D0B9A7; flex: none; }
.open-now.is-open { color: var(--text); }
.open-now.is-open i { background: #776354; box-shadow: 0 0 0 4px rgba(119, 99, 84, .18); }
/* contact card: open/closed as a clear badge — green when open, muted red when closed */
:root .info-grid .open-now {
  display: inline-flex; margin-top: 12px; padding: 6px 12px 6px 10px; border-radius: 14px; max-width: 100%;
  font-size: 13px; font-weight: 600; line-height: 1.3; letter-spacing: 0; background: #FBEDEA; color: #A8362A;
}
.info-grid .open-now i { background: #D9534F; box-shadow: 0 0 0 3px rgba(217, 83, 79, .2); }
.info-grid .open-now.is-open { background: #E8F6EC; color: #1E7A3E; }
.info-grid .open-now.is-open i { background: #22A055; box-shadow: 0 0 0 3px rgba(34, 160, 85, .22); animation: open-pulse 2s ease-in-out infinite; }
.info-grid .open-now:empty { display: none; }
@keyframes open-pulse { 50% { box-shadow: 0 0 0 6px rgba(34, 160, 85, 0); } }
@media (prefers-reduced-motion: reduce) { .info-grid .open-now.is-open i { animation: none; } }

/* contact card: hours as a two-column list (day | time), today's row highlighted */
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hours li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-inline: -8px; padding: 5px 8px; border-radius: 8px; font-size: 15px; line-height: 1.5;
}
.hours span { color: var(--text); font-weight: 500; }
.hours b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours li.is-today { background: var(--blush); }
.hours li.is-today span { font-weight: 700; }
.footer-bottom .open-now { font-size: 13px; }

/* ---------- Prices: savings tag on its own line under a pass ---------- */
.price li:has(.save) { flex-wrap: wrap; row-gap: 6px; }
.price li:has(.save)::after { content: ""; flex-basis: 100%; order: 2; }
.price li .save {
  order: 3; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; background: var(--blush); color: var(--text);
}
.price--feat li .save { background: rgba(250, 248, 244, .2); color: #fff; text-shadow: none; }

/* ---------- Phones: bottom dock ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  /* floating capsule: big "Book" pill + three round icon buttons with short labels */
  html.has-dock { --dock-h: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: var(--dock-h, 0px); }
  .dock {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 96;
    display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)); align-items: center; gap: 2px;
    height: 64px; padding: 6px; border-radius: 26px;
    background: rgba(250, 248, 244, .86); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(227, 213, 199, .9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 18px 40px -16px rgba(80, 64, 52, .45), 0 4px 12px -6px rgba(80, 64, 52, .25);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .25s;
  }
  .dock.is-away { transform: translateY(calc(100% + 24px)); opacity: 0; }
  .dock a, .dock button {
    position: relative; height: 100%; min-width: 0;
    display: grid; justify-items: center; align-content: center; gap: 3px;
    background: none; border: 0; border-radius: 20px; cursor: pointer; text-decoration: none;
    font: 600 11px/1.1 var(--body); letter-spacing: .01em; color: var(--text); -webkit-tap-highlight-color: transparent;
    font-feature-settings: "locl" 0; transition: background-color .2s, transform .15s;
  }
  .dock svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  html.has-dock .dock span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  /* main action: horizontal pill with icon + label */
  .dock .dock-main {
    display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; margin-right: 4px; border-radius: 20px;
    background: linear-gradient(180deg, #86705F, var(--cocoa)); color: var(--white);
    box-shadow: 0 8px 18px -10px rgba(80, 64, 52, .8), 0 1px 0 rgba(255, 255, 255, .18) inset;
  }
  html.has-dock .dock .dock-main span { font-size: 13.5px; font-weight: 700; max-width: none; overflow: visible; }
  .dock .dock-main svg { flex: none; width: 19px; height: 19px; }
  @media (max-width: 350px) {
    .dock .dock-main svg { display: none; }
    html.has-dock .dock span { font-size: 10px; letter-spacing: 0; }
  }
  .dock a:not(.dock-main):hover, .dock button:hover { background: rgba(239, 230, 219, .7); }
  .dock a:active, .dock button:active { transform: scale(.94); }
  .dock button[aria-expanded="true"] { background: var(--blush); }
  .dock a:focus-visible, .dock button:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
  /* the floating pill is replaced by the dock; its options open just above the dock */
  .reach-main { display: none; }
  .reach { bottom: calc(12px + var(--bar-h, 0px) + var(--dock-h, 0px)); }
  .cookie-bar { bottom: var(--dock-h, 0px); padding-bottom: 16px; }
  html.has-dock .pili { bottom: calc(12px + var(--bar-h, 0px) + var(--dock-h, 0px)); }
  /* the dock already carries "Book", so the header keeps just the logo and the menu */
  html.has-dock .site-header .pill:has(> .btn) { display: none; }
}

/* ---------- "Read the story" window (extras.js, links with data-story) ---------- */
.story {
  width: min(680px, calc(100vw - 32px)); max-height: min(88dvh, 860px); padding: 0; border: 0; border-radius: 28px;
  background: var(--white); color: var(--text); overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(119, 99, 84, .6), 0 10px 30px -14px rgba(119, 99, 84, .3);
}
.story::backdrop { background: rgba(119, 99, 84, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.story-card { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: inherit; }
.story-photo { position: relative; height: clamp(180px, 34vh, 300px); overflow: hidden; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 3%; display: block; }
.story-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(119, 99, 84, 0) 65%, var(--white)); }
.story-x {
  position: absolute; top: 14px; right: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(250, 248, 244, .6);
  display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(80, 64, 52, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, rotate .35s cubic-bezier(.34, 1.4, .64, 1);
}
.story-x:hover { background: rgba(80, 64, 52, .65); rotate: 90deg; }
.story-x:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.story-x svg { width: 18px; height: 18px; }
.story-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px clamp(22px, 5vw, 44px) 8px; outline: none; }
.story-body .founder-letter { margin: 0; max-width: none; gap: 14px; }
.story-body .founder-letter p { font-size: 16.5px; }
.story-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px clamp(22px, 5vw, 44px) 20px; border-top: 1px solid var(--line); background: var(--white); }
/* loading lines while the text arrives */
.story-wait { display: grid; gap: 12px; padding: 12px 0 24px; }
.story-wait i { height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--blush), #FAF8F4, var(--blush)); background-size: 200% 100%; animation: story-shimmer 1.2s linear infinite; }
.story-wait i:first-child { height: 26px; width: 80%; margin-bottom: 6px; }
.story-wait i:last-child { width: 60%; }
@keyframes story-shimmer { to { background-position: -200% 0; } }
/* in and out */
.story[open] { animation: story-in .45s cubic-bezier(.34, 1.3, .64, 1) both; }
.story[open]::backdrop { animation: story-fade .3s ease both; }
.story.is-closing { animation: story-out .26s cubic-bezier(.4, 0, 1, 1) both; }
.story.is-closing::backdrop { animation: story-fade .26s ease reverse both; }
@keyframes story-in { from { opacity: 0; translate: 0 18px; scale: .96; } }
@keyframes story-out { to { opacity: 0; translate: 0 12px; scale: .97; } }
@keyframes story-fade { from { opacity: 0; } }
/* phones: a sheet that rises from the bottom */
@media (max-width: 600px) {
  .story { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
  .story-foot { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .story-foot .btn { flex: 1; justify-content: center; }
  @keyframes story-in { from { translate: 0 100%; } }
  @keyframes story-out { to { translate: 0 100%; } }
}
@media (prefers-reduced-motion: reduce) {
  .story[open], .story.is-closing, .story[open]::backdrop, .story.is-closing::backdrop, .story-wait i { animation: none; }
}
