/* Orilla Clinic — concept demo. Design tokens first, then base, components, pages. */
:root {
  --lagoon: #0b3b43;
  --abyss: #06272d;
  --tide: #14606a;
  --glass: #cfeae4;
  --glass-2: #e4f3ef;
  --foam: #f5faf8;
  --paper: #ffffff;
  --lemon: #ffd84a;
  --lemon-deep: #f0bf12;
  --pink: #d4347a;
  --ink: #0d2a2f;
  --muted: #47656a;
  --line: rgba(11, 59, 67, 0.14);
  --on-dark: #eaf6f3;
  --on-dark-muted: #a8cdc7;
  --line-dark: rgba(207, 234, 228, 0.18);
  --ok: #0f7a5a;
  --warn: #9a5b00;
  --err: #b3261e;

  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --pebble: 132px 28px 132px 28px;
  --shadow-1: 0 1px 2px rgba(6, 39, 45, 0.06), 0 6px 16px -8px rgba(6, 39, 45, 0.18);
  --shadow-2: 0 2px 4px rgba(6, 39, 45, 0.06), 0 24px 48px -20px rgba(6, 39, 45, 0.38);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --wrap: 1200px;
  --ribbon-h: 34px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--ribbon-h);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; line-height: 1.05; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 4.6vw + 1rem, 4.7rem); letter-spacing: -0.032em; line-height: 1; font-weight: 600; }
h2 { font-size: clamp(2rem, 3.4vw + 0.8rem, 3.5rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.lede { font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem); color: var(--muted); max-width: 58ch; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--lemon); color: var(--abyss); box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 8px 20px -10px rgba(240, 191, 18, 0.9); }
.btn-dark { background: var(--lagoon); color: var(--on-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.on-dark .btn-ghost { border-color: var(--line-dark); color: var(--on-dark); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.94rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #ffe06e; }
  .btn-dark:hover { background: var(--tide); }
  .btn-ghost:hover { border-color: currentColor; }
}
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--lemon-deep); }
.on-dark .link { text-decoration-color: var(--lemon); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(245, 250, 248, 0.86); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color 200ms ease; }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; gap: 12px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.04em; color: var(--lagoon); margin-right: auto; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo small { font: 500 0.72rem/1.1 var(--body); letter-spacing: 0; color: var(--muted); display: none; }
.nav { display: none; gap: 4px; }
.nav a { padding: 10px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 0.97rem; color: var(--ink); transition: background-color 150ms ease; }
.nav a[aria-current="page"] { background: var(--glass-2); }
@media (hover: hover) { .nav a:hover { background: var(--glass-2); } }
.menu-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; display: grid; place-items: center; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink); }
.mnav { display: none; padding: 8px 16px 20px; border-top: 1px solid var(--line); background: var(--foam); }
.mnav.open { display: grid; }
.mnav a { padding: 14px 4px; text-decoration: none; font-weight: 600; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.hdr .btn-book { display: none; }
@media (min-width: 420px) { .hdr .btn-book { display: inline-flex; } }
@media (min-width: 1000px) {
  .nav { display: flex; } .menu-btn, .mnav.open { display: none; }
  .logo small { display: block; } .hdr-in { height: 76px; }
}

/* language switch */
.lang { position: relative; }
.lang-btn { min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 6px; }
.lang-btn svg { width: 10px; height: 10px; transition: transform 160ms var(--ease-out); }
.lang-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 230px; padding: 8px; margin: 0; list-style: none;
  background: var(--paper); border-radius: var(--r-m); box-shadow: var(--shadow-2); border: 1px solid var(--line);
  transform-origin: top right; opacity: 0; transform: scale(0.96) translateY(-4px); pointer-events: none; visibility: hidden;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out), visibility 0s 150ms;
}
.lang-menu.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.lang-menu li { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 0.96rem; }
.lang-menu li[aria-current] { background: var(--glass-2); font-weight: 600; }
.lang-menu li[aria-disabled] { color: var(--muted); }
.lang-menu em { font-style: normal; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--foam); border: 1px solid var(--line); }
.lang-menu p { font-size: 0.8rem; color: var(--muted); padding: 8px 12px 4px; line-height: 1.4; }

/* ---------- ribbon ---------- */
.ribbon { position: fixed; inset: auto 0 0 0; z-index: 60; min-height: var(--ribbon-h); background: var(--abyss); color: var(--on-dark-muted); font-size: 0.78rem; line-height: 1.3; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; text-align: center; }
.ribbon a { color: var(--on-dark); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 440px) { .ribbon { font-size: 0.69rem; padding-inline: 6px; } .ribbon i { display: none; } }
.ribbon i { width: 7px; height: 7px; border-radius: 50%; background: var(--lemon); flex: none; }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 820px; }
.dark { background: var(--lagoon); color: var(--on-dark); }
.dark .lede, .dark .muted { color: var(--on-dark-muted); }
.muted { color: var(--muted); }
.tint { background: var(--glass-2); }
.block { margin-inline: 8px; border-radius: var(--r-l); }
@media (min-width: 700px) { .block { margin-inline: 16px; border-radius: 40px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--lagoon); color: var(--on-dark); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background:
    radial-gradient(38% 30% at 18% 22%, rgba(73, 190, 180, 0.42), transparent 70%),
    radial-gradient(30% 34% at 82% 12%, rgba(255, 216, 74, 0.16), transparent 70%),
    radial-gradient(44% 40% at 70% 86%, rgba(20, 96, 106, 0.9), transparent 70%);
  animation: drift 22s var(--ease-in-out) infinite alternate;
}
@keyframes drift { to { transform: translate3d(4%, -3%, 0) rotate(4deg) scale(1.06); } }
.hero-in { display: grid; gap: 0; padding: clamp(36px, 5vw, 72px) 0 clamp(36px, 5vw, 64px); }
.hero-copy { display: contents; }
.hero-copy > * { order: 1; }
.hero .stage { order: 2; margin-top: 40px; }
.hero .hero-facts { order: 3; }
.hero h1 { max-width: 15ch; }
@media (min-width: 980px) { .hero h1 { max-width: none; font-size: clamp(3.1rem, 4.3vw, 4rem); } }
.hero .lede { color: var(--on-dark-muted); margin-top: 22px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 44px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line-dark); max-width: 560px; }
.hero-facts dt { font-family: var(--display); font-weight: 650; font-size: 1.3rem; line-height: 1.15; letter-spacing: -0.025em; color: var(--paper); }
.hero-facts dd { margin: 2px 0 0; font-size: 0.92rem; color: var(--on-dark-muted); line-height: 1.4; }
.stage { position: relative; min-height: 440px; }
.stage-photo { position: absolute; inset: 0 0 56px 12%; border-radius: var(--pebble); overflow: hidden; box-shadow: var(--shadow-2); }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; }
.stage-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgba(6, 39, 45, 0.55)); }
.float { position: absolute; background: var(--paper); color: var(--ink); border-radius: var(--r-m); box-shadow: var(--shadow-2); }
.next-slot { left: 0; bottom: 0; width: min(292px, 82%); padding: 16px 16px 14px; text-decoration: none; display: block; transition: transform 200ms var(--ease-out); }
.next-slot b { display: block; font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1.15; margin: 4px 0 2px; }
.next-slot .row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.next-slot .go { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.94rem; padding-top: 12px; border-top: 1px solid var(--line); }
.next-slot .go svg { width: 28px; height: 28px; padding: 7px; border-radius: 50%; background: var(--lemon); transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .next-slot:hover { transform: translateY(-3px); } .next-slot:hover .go svg { transform: translateX(3px); } }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); position: relative; flex: none; }
.live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--pink); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.8; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.bubble { right: 0; top: 22px; width: min(250px, 70%); padding: 12px 14px; font-size: 0.86rem; line-height: 1.4; border-radius: 18px 18px 4px 18px; }
.bubble small { display: block; color: var(--muted); font-size: 0.72rem; margin-top: 4px; text-align: right; }
.pillnote { right: 4%; top: 148px; padding: 9px 14px 9px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; gap: 8px; background: var(--lemon); color: var(--abyss); }
.pillnote svg { width: 18px; height: 18px; }
.seq { opacity: 0; transform: translateY(14px) scale(0.97); animation: rise 620ms var(--ease-out) forwards; }
.seq.s1 { animation-delay: 350ms; } .seq.s2 { animation-delay: 1150ms; } .seq.s3 { animation-delay: 1900ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (min-width: 980px) {
  .hero-in { grid-template-columns: 1.3fr 0.82fr; align-items: center; gap: 48px; }
  .hero-copy { display: block; }
  .hero .stage { margin-top: 0; min-height: 560px; }
  .hero-facts dt { font-size: 1.5rem; }
  .stage-photo { inset: 0 0 70px 14%; }
  .next-slot { width: 320px; padding: 20px; }
  .bubble { right: -8px; top: 44px; width: 270px; font-size: 0.92rem; }
  .pillnote { top: 196px; right: 24px; }
}

/* ---------- treatments ---------- */
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--glass-2); gap: 2px; }
.tabs button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; color: var(--muted); transition: background-color 160ms ease, color 160ms ease; }
.tabs button[aria-selected="true"] { background: var(--lagoon); color: var(--on-dark); }
.tx-grid { display: grid; gap: 40px; margin-top: 28px; }
.tx-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.tx { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.tx h3 { grid-column: 1; }
.tx p { grid-column: 1; color: var(--muted); font-size: 0.96rem; max-width: 52ch; }
.tx .meta { grid-column: 1; display: flex; gap: 14px; font-size: 0.88rem; font-weight: 600; color: var(--tide); }
.tx .price { grid-column: 2; grid-row: 1; font-family: var(--display); font-weight: 650; font-size: 1.35rem; letter-spacing: -0.02em; text-align: right; }
.tx .btn { grid-column: 2; grid-row: 2 / span 2; align-self: end; justify-self: end; }
.pricecard { background: var(--lagoon); color: var(--on-dark); border-radius: var(--r-l); padding: 28px 24px; align-self: start; }
.pricecard h3 { font-size: 1.5rem; }
.pricecard p { color: var(--on-dark-muted); font-size: 0.95rem; margin-top: 8px; }
.pricecard dl { margin: 20px 0 0; }
.pricecard div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-dark); font-size: 0.98rem; }
.pricecard dd { margin: 0; font-weight: 600; white-space: nowrap; color: var(--lemon); }
@media (min-width: 980px) { .tx-grid { grid-template-columns: 1.5fr 1fr; gap: 64px; } .pricecard { position: sticky; top: 100px; padding: 36px 32px; } }

/* ---------- estimator ---------- */
.quiz { display: grid; gap: 32px; }
.quiz-card { background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: 24px 20px; box-shadow: var(--shadow-2); min-height: 430px; display: flex; flex-direction: column; }
.dots { display: flex; gap: 6px; margin-bottom: 22px; }
.dots i { height: 5px; flex: 1; border-radius: 3px; background: var(--glass); transition: background-color 250ms ease; }
.dots i.on { background: var(--lagoon); }
.quiz-card h3 { font-size: 1.55rem; margin-bottom: 18px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; min-height: 54px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 500; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: border-color 150ms ease, background-color 150ms ease, transform 140ms var(--ease-out); }
.opt:active { transform: scale(0.985); }
.opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--lagoon); background: var(--glass-2); }
@media (hover: hover) and (pointer: fine) { .opt:hover { border-color: var(--tide); } }
.quiz-foot { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back { background: none; border: 0; font-weight: 600; color: var(--muted); min-height: 44px; padding: 0 8px; }
.result .range { font-family: var(--display); font-size: clamp(2.2rem, 6vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 6px 0 4px; }
.result ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.result li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.97rem; }
.result li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--ok); }
.fine { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.step-anim { animation: stepin 260ms var(--ease-out); }
@keyframes stepin { from { opacity: 0; transform: translateX(14px); } }
@media (min-width: 900px) { .quiz { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; } .quiz-card { padding: 36px; } }

/* ---------- booking ---------- */
.bk { display: grid; gap: 20px; }
.bk-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; counter-reset: s; }
.bk-steps li { flex: 1; counter-increment: s; font-size: 0.8rem; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--glass); transition: border-color 250ms ease, color 250ms ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-steps li::before { content: counter(s) " "; }
.bk-steps li span { display: none; }
.bk-steps li.done { border-color: var(--tide); color: var(--tide); }
.bk-steps li.now { border-color: var(--lagoon); color: var(--ink); }
.bk-steps li.now span { display: inline; }
.bk-steps li.now { flex: 0 0 auto; padding-right: 10px; }
@media (min-width: 700px) { .bk-steps li span { display: inline; } .bk-steps li, .bk-steps li.now { font-size: 0.9rem; flex: 1; } }
.bk-main { background: var(--paper); border-radius: var(--r-l); padding: 22px 18px 24px; box-shadow: var(--shadow-1); border: 1px solid var(--line); min-width: 0; }
.bk-main h3 { font-size: 1.5rem; margin-bottom: 6px; }
.bk-main > div > .muted { font-size: 0.97rem; margin-bottom: 20px; }
.bk-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.choice { display: grid; gap: 10px; }
.choice .opt { align-items: flex-start; }
.opt .t { display: grid; gap: 2px; }
.opt .t small { color: var(--muted); font-size: 0.86rem; font-weight: 400; }
.opt .p { font-weight: 600; white-space: nowrap; font-size: 0.95rem; }
.cat-label { font-weight: 600; font-size: 0.9rem; color: var(--tide); margin: 18px 0 8px; }
.cat-label:first-of-type { margin-top: 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1rem; background: var(--glass); color: var(--lagoon); }
.avatar.b { background: var(--lemon); } .avatar.c { background: #f6c9dc; color: #7a1444; } .avatar.d { background: var(--lagoon); color: var(--glass); }
.opt.doc { justify-content: flex-start; gap: 14px; align-items: center; }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -2px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { flex: none; width: 68px; min-height: 84px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--paper); display: grid; place-items: center; align-content: center; gap: 0; scroll-snap-align: start; transition: border-color 150ms ease, background-color 150ms ease, transform 140ms var(--ease-out); }
.day:active { transform: scale(0.96); }
.day small { font-size: 0.76rem; color: var(--muted); font-weight: 600; }
.day b { font-family: var(--display); font-size: 1.45rem; line-height: 1.1; }
.day em { font-style: normal; font-size: 0.7rem; color: var(--tide); font-weight: 600; }
.day[disabled] { background: var(--foam); opacity: 0.55; cursor: not-allowed; }
.day[aria-pressed="true"] { background: var(--lagoon); border-color: var(--lagoon); color: var(--on-dark); }
.day[aria-pressed="true"] small, .day[aria-pressed="true"] em { color: var(--glass); }
.times h4 { font: 600 0.88rem var(--body); letter-spacing: 0; color: var(--muted); margin: 16px 0 8px; }
.timegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.time { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color 150ms ease, background-color 150ms ease, transform 140ms var(--ease-out); }
.time:active { transform: scale(0.96); }
.time[aria-pressed="true"] { background: var(--lemon); border-color: var(--lemon-deep); }
@media (hover: hover) and (pointer: fine) { .time:hover, .day:not([disabled]):hover { border-color: var(--tide); } }
.bk-side { background: var(--lagoon); color: var(--on-dark); border-radius: var(--r-l); padding: 22px 20px; align-self: start; }
.bk-side h3 { font-size: 1.15rem; margin-bottom: 12px; }
.bk-side dl { margin: 0; }
.bk-side dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-dark); font-size: 0.95rem; }
.bk-side dt { color: var(--on-dark-muted); }
.bk-side dd { margin: 0; font-weight: 600; text-align: right; }
.bk-side dd.empty { color: var(--on-dark-muted); font-weight: 400; }
.bk-side .fine { color: var(--on-dark-muted); }
@media (min-width: 980px) { .bk { grid-template-columns: 1fr 340px; gap: 24px; } .bk-main { padding: 36px; } .bk-side { position: sticky; top: 100px; padding: 28px; } }

/* forms */
.fields { display: grid; gap: 16px; }
.f2 { display: grid; gap: 16px; }
@media (min-width: 620px) { .f2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-weight: 600; font-size: 0.94rem; }
.field .hint { font-size: 0.84rem; color: var(--muted); }
.inp { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(11, 59, 67, 0.28); background: var(--paper); font-size: 1rem; transition: border-color 150ms ease, box-shadow 150ms ease; }
textarea.inp { min-height: 96px; resize: vertical; }
.inp:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 4px rgba(20, 96, 106, 0.18); }
.inp[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.1); }
.errmsg { color: var(--err); font-size: 0.86rem; font-weight: 500; min-height: 0; }
.errmsg:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.96rem; padding: 4px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--lagoon); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; font-size: 0.95rem; cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease; }
.seg input:checked + span { background: var(--lagoon); border-color: var(--lagoon); color: var(--on-dark); }
.seg input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.seg input:disabled + span { opacity: 0.5; cursor: not-allowed; }
.notice { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--glass-2); font-size: 0.92rem; line-height: 1.45; }
.notice svg { width: 20px; height: 20px; margin-top: 2px; color: var(--tide); }
.notice.lemon { background: #fff5c7; } .notice.lemon svg { color: var(--warn); }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(6, 39, 45, 0.25); border-top-color: var(--abyss); animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* confirmation */
.done-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.tick { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--lemon); display: grid; place-items: center; animation: pop 420ms var(--ease-out); }
.tick svg { width: 26px; height: 26px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 420ms 180ms var(--ease-out) forwards; }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ref { font-weight: 600; font-size: 0.9rem; color: var(--tide); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.preview { border-radius: var(--r-m); background: var(--glass-2); padding: 16px; }
.preview-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.preview-head b { font-size: 0.92rem; }
.preview .tabs { background: var(--paper); }
.preview .tabs button { min-height: 38px; padding: 0 14px; font-size: 0.88rem; }
.wa { background: #e9e2d8; border-radius: 16px; padding: 14px; display: grid; gap: 8px; }
.wa .msg { background: var(--paper); border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: 0.9rem; line-height: 1.45; max-width: 420px; box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: pre-line; }
.wa .msg time { display: block; text-align: right; font-size: 0.7rem; color: var(--muted); margin-top: 2px; }
.wa .qr { display: flex; gap: 6px; max-width: 420px; }
.wa .qr span { flex: 1; text-align: center; background: var(--paper); border-radius: 10px; padding: 9px 6px; font-size: 0.85rem; font-weight: 600; color: #0a6b9a; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.mail { background: var(--paper); border-radius: 14px; overflow: hidden; font-size: 0.92rem; }
.mail header { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); display: grid; gap: 2px; }
.mail header b { color: var(--ink); font-size: 0.98rem; }
.mail .body { padding: 16px; display: grid; gap: 10px; }
.mail table { border-collapse: collapse; width: 100%; }
.mail td { padding: 7px 0; border-top: 1px solid var(--line); vertical-align: top; }
.mail td:first-child { color: var(--muted); width: 38%; }

/* ---------- visitors ---------- */
.split { display: grid; gap: 36px; align-items: center; }
.split figure { margin: 0; position: relative; }
.split figure img { border-radius: var(--pebble); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.split figure .float { left: 16px; bottom: -18px; padding: 14px 16px; max-width: 260px; font-size: 0.9rem; line-height: 1.4; }
.split figure .float b { font-family: var(--display); font-size: 1.1rem; display: block; }
.plan { list-style: none; counter-reset: p; margin: 28px 0 32px; padding: 0; display: grid; gap: 0; }
.plan li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.plan li::before { content: counter(p); width: 38px; height: 38px; border-radius: 50%; background: var(--lagoon); color: var(--lemon); font-family: var(--display); font-weight: 700; display: grid; place-items: center; }
.plan p { color: var(--muted); font-size: 0.97rem; margin-top: 2px; }
@media (min-width: 940px) { .split { grid-template-columns: 0.95fr 1.05fr; gap: 80px; } }

/* ---------- team ---------- */
.team { display: grid; gap: 14px; grid-template-columns: 1fr; }
.member { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; display: grid; gap: 14px; align-content: start; }
.member .mono { width: 76px; height: 76px; border-radius: 28px 8px 28px 8px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.04em; background: var(--glass); color: var(--lagoon); }
.member:nth-child(2) .mono { background: var(--lemon); } .member:nth-child(3) .mono { background: #f6c9dc; color: #7a1444; } .member:nth-child(4) .mono { background: var(--lagoon); color: var(--glass); }
.member .role { color: var(--tide); font-weight: 600; font-size: 0.92rem; margin-top: 4px; }
.member p { color: var(--muted); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--glass-2); color: var(--lagoon); white-space: nowrap; }
@media (min-width: 620px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .team { grid-template-columns: repeat(4, 1fr); } }

/* ---------- quotes ---------- */
.quotes { display: grid; gap: 14px; }
.quote { margin: 0; padding: 26px 24px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 16px; align-content: space-between; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
.quote figcaption { font-size: 0.9rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.sample { font-size: 0.74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px dashed var(--tide); color: var(--tide); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* ---------- behind the scenes teaser ---------- */
.bts { display: grid; gap: 28px; padding: 32px 22px; }
.bts-cards { display: grid; gap: 12px; }
.bts-card { display: grid; gap: 6px; padding: 22px; border-radius: var(--r-m); background: rgba(207, 234, 228, 0.08); border: 1px solid var(--line-dark); text-decoration: none; transition: background-color 180ms ease, transform 180ms var(--ease-out); }
.bts-card b { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.02em; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bts-card b svg { width: 30px; height: 30px; padding: 8px; border-radius: 50%; background: var(--lemon); color: var(--abyss); flex: none; }
.bts-card span { color: var(--on-dark-muted); font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) { .bts-card:hover { background: rgba(207, 234, 228, 0.14); transform: translateY(-2px); } }
@media (min-width: 900px) { .bts { grid-template-columns: 1fr 1fr; gap: 56px; padding: 64px; align-items: center; } }

/* ---------- faq ---------- */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 12px; height: 12px; border-right: 2px solid var(--lagoon); border-bottom: 2px solid var(--lagoon); transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-4px, -4px); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* ---------- footer ---------- */
.ftr { background: var(--abyss); color: var(--on-dark-muted); padding: 56px 0 40px; font-size: 0.94rem; }
.ftr-in { display: grid; gap: 32px; }
.ftr .logo { color: var(--on-dark); }
.ftr h4 { font: 600 0.9rem var(--body); letter-spacing: 0; color: var(--on-dark); margin-bottom: 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr a { text-decoration: none; } .ftr a:hover { color: var(--on-dark); }
.ftr .legal { border-top: 1px solid var(--line-dark); padding-top: 20px; font-size: 0.84rem; }
@media (min-width: 800px) { .ftr-in { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .ftr .legal { grid-column: 1 / -1; } }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(var(--ribbon-h) + 16px); transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--abyss); color: var(--on-dark); padding: 13px 16px; border-radius: 14px; font-size: 0.93rem; font-weight: 500; box-shadow: var(--shadow-2); display: flex; gap: 10px; align-items: center; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.toast i { width: 8px; height: 8px; border-radius: 50%; background: var(--lemon); flex: none; }
.toast.out, .toast.in { opacity: 0; transform: translateY(12px); }

/* ---------- inner page heads ---------- */
.phead { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 44px); }
.phead h1 { font-size: clamp(2.2rem, 4.6vw + 0.6rem, 4.2rem); max-width: 16ch; }
.phead .lede { margin-top: 18px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--tide); text-decoration: none; margin-bottom: 18px; min-height: 44px; }
.crumb svg { width: 16px; height: 16px; }

/* ---------- intake ---------- */
.intake { display: grid; gap: 20px; padding-bottom: 80px; }
.intake-nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px 20px; align-self: start; }
.meter { height: 8px; border-radius: 4px; background: var(--glass); overflow: hidden; margin: 10px 0 4px; }
.meter i { display: block; height: 100%; width: 100%; background: var(--lagoon); border-radius: 4px; transform-origin: left; transform: scaleX(0); transition: transform 420ms var(--ease-out); }
.intake-nav ol { list-style: none; margin: 16px 0 0; padding: 0; display: none; gap: 2px; }
.intake-nav li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.intake-nav li i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--glass); flex: none; display: grid; place-items: center; font-style: normal; font-size: 0.7rem; }
.intake-nav li.now { color: var(--ink); font-weight: 600; } .intake-nav li.now i { border-color: var(--lagoon); }
.intake-nav li.done i { background: var(--lagoon); border-color: var(--lagoon); color: var(--lemon); }
.intake-nav li.done i::before { content: "✓"; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 600; font-size: 0.94rem; margin-bottom: 8px; }
.cond { display: grid; gap: 4px 20px; }
@media (min-width: 620px) { .cond { grid-template-columns: 1fr 1fr; } }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; max-width: 420px; }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; inset: 0; }
.scale span { display: grid; place-items: center; min-height: 50px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 600; cursor: pointer; }
.scale input:checked + span { background: var(--lagoon); color: var(--on-dark); border-color: var(--lagoon); }
.scale input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.sumlist { margin: 0; display: grid; }
.sumlist div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.sumlist dt { color: var(--muted); font-size: 0.88rem; } .sumlist dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 980px) { .intake { grid-template-columns: 300px 1fr; gap: 24px; } .intake-nav { position: sticky; top: 100px; padding: 24px; } .intake-nav ol { display: grid; } }

/* ---------- how it works ---------- */
.flow { display: grid; gap: 28px; padding-bottom: 40px; }
.flow-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.rail { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; }
.rail::before { content: ""; position: absolute; left: 15px; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--glass); }
.rail-fill { position: absolute; left: 15px; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--lagoon); transform-origin: top; transform: scaleY(0); transition: transform 700ms var(--ease-in-out); }
.node { position: relative; padding: 0 0 18px; }
.node::before { content: ""; position: absolute; left: -36px; top: 18px; width: 17px; height: 17px; border-radius: 50%; background: var(--foam); border: 3px solid var(--glass); transition: background-color 300ms ease, border-color 300ms ease, transform 300ms var(--ease-out); z-index: 1; }
.node.on::before { background: var(--lemon); border-color: var(--lagoon); }
.node.cur::before { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(255, 216, 74, 0.35); }
.node button { width: 100%; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; display: grid; gap: 4px; opacity: 0.5; transition: opacity 320ms ease, border-color 320ms ease, box-shadow 320ms ease, transform 320ms var(--ease-out); }
.node.on button { opacity: 1; }
.node.cur button { border-color: var(--lagoon); box-shadow: var(--shadow-1); transform: translateX(4px); }
.node .when { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.78rem; font-weight: 600; color: var(--tide); }
.node .when span { padding: 2px 9px; border-radius: 999px; background: var(--glass-2); font-variant-numeric: tabular-nums; }
.node .when .lane { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.node b { font-family: var(--display); font-size: 1.14rem; letter-spacing: -0.015em; line-height: 1.2; }
.node p { font-size: 0.93rem; color: var(--muted); line-height: 1.5; }
.node.branch button { background: #fff5c7; border-style: dashed; }
.node-view { margin-top: 8px; background: var(--abyss); border-radius: var(--r-m); padding: 12px; display: grid; gap: 8px; color: var(--on-dark); }
@media (min-width: 980px) { .node-view { display: none; } }
@media (max-width: 979px) { .feed-view, .feed-clock { display: none; } }
.feed { background: var(--lagoon); color: var(--on-dark); border-radius: var(--r-l); padding: 20px; align-self: start; }
.feed h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.feed .fine { color: var(--on-dark-muted); margin: 0 0 14px; }
.feed-clock { font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.feed-view { margin-top: 14px; min-height: 248px; background: var(--abyss); border-radius: var(--r-m); padding: 14px; display: grid; align-content: start; gap: 10px; }
.fx { animation: fxin 380ms var(--ease-out); }
@keyframes fxin { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.fx-msg { background: var(--paper); color: var(--ink); border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: 0.88rem; line-height: 1.45; }
.fx-msg small { display: block; color: var(--muted); font-size: 0.72rem; margin-bottom: 2px; font-weight: 600; }
.fx-row { display: flex; gap: 6px; }
.fx-row span { flex: 1; text-align: center; background: var(--glass); color: var(--abyss); border-radius: 10px; padding: 8px 4px; font-size: 0.82rem; font-weight: 600; }
.fx-rec { border: 1px solid var(--line-dark); border-radius: 12px; padding: 10px 12px; font-size: 0.86rem; display: grid; gap: 4px; }
.fx-rec div { display: flex; justify-content: space-between; gap: 12px; }
.fx-rec span { color: var(--on-dark-muted); } .fx-rec b { font: 600 0.86rem/1.4 var(--body); letter-spacing: 0; text-align: right; }
.fx-rec .tag { color: var(--lemon); }
.log { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; font-size: 0.8rem; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.log li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; }
.log li:first-child { color: var(--on-dark); }
@media (min-width: 980px) { .flow { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } .feed { position: sticky; top: 100px; padding: 28px; } .rail { padding-left: 56px; } .rail::before, .rail-fill { left: 19px; } .node::before { left: -45px; } }
.saves { display: grid; gap: 0; border-top: 1px solid var(--line); }
.saves div { display: grid; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.saves dt { font-weight: 600; } .saves dd { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .saves div { grid-template-columns: 1fr 1.4fr; } }
.pkg { display: grid; gap: 24px; padding: 32px 22px; }
.pkg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pkg li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.pkg li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--lemon); }
@media (min-width: 900px) { .pkg { grid-template-columns: 1fr 1fr; gap: 56px; padding: 64px; } }

/* ---------- staff view ---------- */
.staff { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-2); overflow: hidden; margin-bottom: 72px; }
.staff-bar { background: var(--abyss); color: var(--on-dark); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.staff-bar .logo { color: var(--on-dark); font-size: 1.15rem; margin-right: 0; }
.staff-bar .logo svg { width: 22px; height: 22px; }
.staff-bar .who { margin-left: auto; font-size: 0.85rem; color: var(--on-dark-muted); display: flex; align-items: center; gap: 8px; }
.staff-bar .who i { width: 28px; height: 28px; border-radius: 50%; background: var(--lemon); color: var(--abyss); display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 0.75rem; }
.staff-body { padding: 18px 16px 22px; }
.staff-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; }
.staff-top h2 { font-size: 1.7rem; }
.staff-top p { color: var(--muted); font-size: 0.92rem; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.kpi { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.kpi b { font-family: var(--display); font-size: 1.7rem; letter-spacing: -0.03em; display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 0.82rem; color: var(--muted); }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } .staff-body { padding: 28px; } .staff-bar { padding: 14px 28px; } }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; }
.filters button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; font-size: 0.88rem; }
.filters button[aria-pressed="true"] { background: var(--lagoon); color: var(--on-dark); border-color: var(--lagoon); }
.appts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.appt { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: 58px 1fr; gap: 6px 12px; align-items: start; transition: background-color 600ms ease, border-color 300ms ease, opacity 300ms ease; }
.appt.flash { background: #fff5c7; }
.appt.is-noshow, .appt.is-moved { opacity: 0.6; }
.appt .at { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.appt .at small { display: block; font: 500 0.75rem var(--body); color: var(--muted); letter-spacing: 0; }
.appt .who b { display: block; font-size: 1rem; }
.appt .who span { display: block; font-size: 0.88rem; line-height: 1.4; color: var(--muted); }
.appt .flags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.st { font-size: 0.76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.confirmed { background: #dcf3e8; color: #0b6045; } .st.pending { background: #fff0c2; color: #7a4a00; }
.st.arrived { background: var(--lagoon); color: var(--glass); } .st.noshow { background: #fbdcda; color: #8f1d17; }
.st.new { background: #f9d3e4; color: #8a1650; } .st.moved { background: var(--glass-2); color: var(--muted); }
.tagf { font-size: 0.76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tagf.alert { border-color: #e2a39f; color: #8f1d17; background: #fff6f5; }
.appt .acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 4px; }
.appt .acts button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 600; font-size: 0.86rem; transition: transform 140ms var(--ease-out), background-color 150ms ease; }
.appt .acts button:active { transform: scale(0.97); }
.appt .acts .pri { background: var(--lagoon); border-color: var(--lagoon); color: var(--on-dark); }
@media (hover: hover) and (pointer: fine) { .appt .acts button:not(.pri):hover { background: var(--glass-2); } }
@media (min-width: 900px) {
  .appt { grid-template-columns: 76px minmax(0, 1.2fr) minmax(0, 1.25fr) 340px; align-items: center; padding: 12px 16px; }
  .appt .flags { grid-column: auto; } .appt .acts { grid-column: auto; border: 0; padding: 0; margin: 0; justify-content: flex-end; }
}
.nothing { padding: 28px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 16px; }
dialog { border: 0; padding: 0; border-radius: var(--r-l); width: min(92vw, 460px); box-shadow: var(--shadow-2); color: var(--ink); }
dialog::backdrop { background: rgba(6, 39, 45, 0.55); }
dialog[open] { animation: dlg 220ms var(--ease-out); }
@keyframes dlg { from { opacity: 0; transform: scale(0.96); } }
.dlg { padding: 24px; display: grid; gap: 14px; }
.dlg h3 { font-size: 1.4rem; }
.dlg .timegrid { grid-template-columns: 1fr 1fr; }
.dlg .time { padding: 0 8px; font-size: 0.92rem; }

/* scroll reveal: one quiet pattern, used only on section heads */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .hero::before { animation: none; }
  .rv { opacity: 1; transform: none; }
  .seq { opacity: 1; transform: none; animation: none; }
  .live::after { display: none; }
}
