/* Nordic, calm, mobile-first. System fonts only (no external requests). */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --soft: #ecf0ed;
  --ink: #1b2a31;
  --muted: #55646b;
  --brand: #2c5b60;
  --brand-strong: #214549;
  --on-brand: #ffffff;
  --accent: #c8a56a;
  --line: #e1ded5;
  --danger: #a8402f;
  --ok-bg: #e3eee9;
  --warn-bg: #f6ecd6;
  --bad-bg: #f5e2de;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(27, 42, 49, .05), 0 8px 24px -12px rgba(27, 42, 49, .12);
  --gutter: clamp(16px, 5vw, 32px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
  font-family: var(--font);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1a1e; --surface: #162328; --soft: #1b2d32; --ink: #e9efef; --muted: #a2b3b6;
    --brand: #8fc7c2; --brand-strong: #b4ddd9; --on-brand: #0b1a1d; --accent: #d5b57d;
    --line: #26393e; --danger: #ff9d8c; --ok-bg: #1d3a33; --warn-bg: #3b3318; --bad-bg: #3e2621;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; font-weight: 650; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--brand); margin: 0 0 .75rem; }
.lead { font-size: clamp(1.1rem, 1rem + .6vw, 1.3rem); color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); } .small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), 68rem); margin-inline: auto; }
.prose { max-width: 40rem; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 50; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header: brand only, no menu */
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; padding-block: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; color: var(--ink); }
.brand svg { width: 28px; height: 28px; color: var(--brand); flex: none; }

main { padding-block: clamp(28px, 6vw, 72px) clamp(48px, 8vw, 96px); }
section + section { margin-top: clamp(40px, 7vw, 88px); }

/* Buttons */
.btn, button { font: inherit; font-weight: 650; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; min-width: 44px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--brand); background: var(--brand); color: var(--on-brand); text-decoration: none; cursor: pointer; transition: background .15s, transform .05s; }
.btn:hover, button:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.btn:active, button:active { transform: translateY(1px); }
.btn.secondary, button.secondary { background: transparent; color: var(--brand); }
.btn.secondary:hover, button.secondary:hover { background: var(--soft); color: var(--brand-strong); }
.btn.danger, button.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.danger:hover, button.danger:hover { background: var(--bad-bg); color: var(--danger); }
button[disabled] { opacity: .55; cursor: progress; }
.btn.block { width: 100%; }
@media (min-width: 600px) { .btn.block { width: auto; } }

/* Hero */
.hero { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.hero-art { color: var(--brand); border-radius: var(--radius); overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.hero-art svg { width: 100%; height: 100%; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.15fr .85fr; } .hero-art { aspect-ratio: 1 / 1; } }

/* Cards and grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); box-shadow: var(--shadow); margin-block: 14px; }
.card > :last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.grid .card { margin: 0; }
.price { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; color: var(--brand-strong); line-height: 1.1; margin: .25em 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--soft); color: var(--brand-strong); font-size: .85rem; font-weight: 650; }
.band { background: var(--soft); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); }
.band .grid { margin-top: 8px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; }
.cta { display: grid; gap: 16px; justify-items: start; background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: clamp(24px, 5vw, 48px); }
.cta h2, .cta p { color: inherit; margin: 0; }
.cta a:not(.btn) { color: inherit; }
.cta .btn { background: var(--on-brand); color: var(--brand-strong); border-color: var(--on-brand); }
.cta .btn:hover { background: var(--soft); border-color: var(--soft); color: var(--brand-strong); }
@media (min-width: 720px) { .cta { grid-template-columns: 1fr auto; align-items: center; justify-items: end; } .cta > div { justify-self: start; } }

/* Forms */
.form { max-width: 44rem; }
.field { margin: 0 0 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-section { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 28px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
label, legend { display: block; font-weight: 650; margin-bottom: 6px; padding: 0; }
input, select, textarea { font: inherit; width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:hover, textarea:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
textarea { min-height: 104px; resize: vertical; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.choices { display: grid; gap: 10px; }
@media (min-width: 600px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; margin: 0; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; background: var(--surface); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--ok-bg); }
.choice input { width: 22px; height: 22px; min-height: 22px; flex: none; margin: 0; accent-color: var(--brand); }
.choice small { display: block; font-weight: 500; color: var(--muted); }
.hint { font-size: .875rem; color: var(--muted); margin: 6px 0 0; }
.err { color: var(--danger); font-weight: 600; font-size: .9rem; margin: 6px 0 0; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Status UI */
.notice { padding: 14px 16px; border-radius: var(--radius-sm); margin: 14px 0; background: var(--ok-bg); border-left: 4px solid var(--brand); }
.notice.warn { background: var(--warn-bg); border-left-color: var(--accent); }
.notice.bad { background: var(--bad-bg); border-left-color: var(--danger); }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 650; font-size: .85rem; background: var(--warn-bg); }
.badge.confirmed, .badge.in_progress, .badge.done { background: var(--ok-bg); }
.badge.declined, .badge.cancelled { background: var(--bad-bg); }
.loading { color: var(--muted); } .loading::before { content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .6em; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -.1em; }
@keyframes spin { to { transform: rotate(360deg); } }

.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 16px; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg); }
.timeline .when { color: var(--muted); font-size: .9rem; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .list.cols { grid-template-columns: 1fr 1fr; } }
.list .card { margin: 0; }
.list a.item { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.list a.item:hover { border-color: var(--brand); transform: translateY(-1px); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.mt { margin-top: 14px; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { dl.facts { grid-template-columns: 1fr; gap: 0; } dl.facts dt { font-size: .85rem; margin-top: 10px; } }

/* Spacing before the submit area */
.form > .hint { margin-top: 16px; }
.form .btn.block { margin-top: 18px; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; }
footer.site p { margin: 0; }
footer.site nav { display: flex; gap: 4px 18px; flex-wrap: wrap; }
footer.site a { display: inline-flex; align-items: center; min-height: 44px; }
.cookie-note { flex-basis: 100%; display: flex; align-items: center; gap: 8px; }
.cookie-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.has-dock footer.site { padding-bottom: calc(40px + 84px); }
.lock { overflow: hidden; }

/* Floating action buttons */
.dock { position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; animation: dock-in .6s cubic-bezier(.2, .8, .2, 1) .25s both; }
.fab { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 999px; text-decoration: none; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; box-shadow: 0 12px 28px -10px rgba(14, 26, 30, .45); transition: transform .18s cubic-bezier(.2, .8, .2, 1), box-shadow .18s, background .15s; }
.fab svg { width: 22px; height: 22px; flex: none; }
.fab:hover { transform: translateY(-2px); }
.fab:active { transform: scale(.96); }
.fab-book { padding: 0 26px 0 20px; background: var(--brand); color: var(--on-brand); border: 0; }
.fab-book:hover { background: var(--brand-strong); color: var(--on-brand); }
.fab-icon { width: 56px; background: var(--surface); color: var(--brand); border: 1.5px solid var(--line); }
.fab-icon:hover { background: var(--soft); color: var(--brand-strong); }
@keyframes dock-in { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }

/* Sheet (native <dialog>): bottom sheet on phones, centred card on larger screens */
dialog.sheet { padding: 0; border: 0; background: var(--surface); color: var(--ink); width: 100%; max-width: 100vw; max-height: min(94dvh, 52rem); margin: auto 0 0; border-radius: 24px 24px 0 0; overflow: hidden; box-shadow: 0 -20px 60px -20px rgba(14, 26, 30, .5);
  opacity: 0; transform: translateY(40px) scale(.985);
  transition: opacity .22s ease, transform .38s cubic-bezier(.2, .8, .2, 1), overlay .38s allow-discrete, display .38s allow-discrete; }
dialog.sheet[open] { display: flex; flex-direction: column; opacity: 1; transform: none; }
@starting-style { dialog.sheet[open] { opacity: 0; transform: translateY(40px) scale(.985); } }
dialog.sheet::backdrop { background: rgba(14, 26, 30, 0); transition: background .3s ease, overlay .3s allow-discrete, display .3s allow-discrete; }
dialog.sheet[open]::backdrop { background: rgba(14, 26, 30, .5); }
@starting-style { dialog.sheet[open]::backdrop { background: rgba(14, 26, 30, 0); } }
@media (min-width: 700px) { dialog.sheet { width: 34rem; margin: auto; border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(14, 26, 30, .55); } }

.sheet-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px 20px; }
.sheet-head h2 { flex: 1; margin: 0; font-size: 1.3rem; }
.sheet-head h2:focus { outline: none; }
.icon-btn { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: transparent; border: 0; color: var(--ink); }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.icon-btn[hidden] { display: none; }
.icon-btn svg { width: 22px; height: 22px; }

.steps-viewport { overflow: hidden; flex: 1 1 auto; min-height: 0; }
.pane { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 6px 20px 20px; max-height: calc(94dvh - 70px); min-width: 0; }
.pane[hidden] { display: none; }
.pane.enter-right { animation: pane-right .38s cubic-bezier(.2, .8, .2, 1); }
.pane.enter-left { animation: pane-left .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes pane-right { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes pane-left { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }

.seg-group { border: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--soft); border-radius: 14px; padding: 5px; }
.seg { margin: 0; cursor: pointer; font-weight: 400; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; text-align: center; padding: 10px 8px; border-radius: 10px; font-weight: 650; min-height: 56px; transition: background .2s, box-shadow .2s, color .2s; }
.seg small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.seg input:checked + span { background: var(--surface); box-shadow: 0 1px 3px rgba(14, 26, 30, .18); color: var(--brand-strong); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cal-title { font-size: 1.05rem; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-week span { text-align: center; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 6px 0; }
button.day { height: 46px; min-height: 44px; min-width: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font-weight: 600; transition: background .15s; }
button.day:hover { background: var(--soft); color: var(--ink); }
button.day.is-today { box-shadow: inset 0 0 0 1.5px var(--line); }
button.day.is-selected { background: var(--brand); color: var(--on-brand); animation: pop-in .25s cubic-bezier(.2, 1.4, .4, 1); }
button.day[disabled] { opacity: .3; cursor: default; background: transparent; }
@keyframes pop-in { from { transform: scale(.8); } to { transform: none; } }

.slots-wrap { margin-top: 12px; animation: reveal .35s cubic-bezier(.2, .8, .2, 1); }
.slots-wrap[hidden] { display: none; }
.slots-title { font-size: .95rem; color: var(--muted); font-weight: 650; margin: 0 0 8px; letter-spacing: 0; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
button.slot { min-height: 44px; padding: 0; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font-weight: 600; transition: background .15s, border-color .15s, color .15s; }
button.slot:hover { background: var(--soft); border-color: var(--brand); color: var(--ink); }
button.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
button.slot[disabled] { opacity: .35; cursor: default; background: transparent; border-color: var(--line); }
button.slot.pop { animation: slot-in .32s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 14ms); }
@keyframes slot-in { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.sheet-foot { position: sticky; bottom: -20px; margin: 16px -20px -20px; padding: 14px 20px 20px; background: linear-gradient(to top, var(--surface) 78%, transparent); }
.sel-summary { margin: 0 0 10px; font-weight: 600; color: var(--muted); text-align: center; min-height: 1.6em; }
.recap { background: var(--soft); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 600; margin-bottom: 18px; }
.pane-done { text-align: center; padding-top: 28px; }
.pane-done .lead { margin-inline: auto; }
.done-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--brand-strong); margin: 0 auto 16px; }
.done-mark svg { width: 30px; height: 30px; }
.pane-done:not([hidden]) .done-mark { animation: pop-in .5s cubic-bezier(.2, 1.4, .4, 1) .15s both; }
.sheet .btn.block { width: 100%; }

.pay-note { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }

/* Admin: blocked times */
.blocks { margin-top: clamp(32px, 6vw, 64px); }
.blocks .seg-group { max-width: 22rem; }
.blocks-panel { margin-top: 18px; }
button.day { position: relative; }
button.day.is-blocked { background: var(--bad-bg); color: var(--danger); }
button.day.has-block::before { content: ""; position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
button.day.has-booking::after { content: ""; position: absolute; bottom: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent); }
button.day.is-selected.is-blocked { background: var(--brand); color: var(--on-brand); }
button.slot { position: relative; }
button.slot.is-blocked { background: var(--bad-bg); border-color: var(--danger); color: var(--danger); }
button.slot.is-weekly { background: repeating-linear-gradient(45deg, var(--bad-bg) 0 6px, transparent 6px 12px); border-color: var(--danger); color: var(--danger); opacity: 1; cursor: not-allowed; }
button.slot.has-booking::after { content: ""; position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
button.slot.is-blocked[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 18px; }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .key::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line); background: var(--surface); }
.legend .k-blocked::before { background: var(--bad-bg); border-color: var(--danger); }
.legend .k-weekly::before { background: repeating-linear-gradient(45deg, var(--bad-bg) 0 3px, transparent 3px 6px); border-color: var(--danger); }
.legend .k-booking::before { border-radius: 50%; background: var(--accent); border-color: var(--accent); width: 9px; height: 9px; }
.block-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.block-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.blocks h3 { margin-top: 24px; font-size: 1.05rem; }
