/* TurnoFacil design system: "the appointment is a ticket". Accent turquoise, violet, ink on lilac. */
:root {
  --ink: #1c1530;
  --ground: #efeaf8;
  --paper: #ffffff;
  --soft: #faf8ff;
  --line: #d9d2e8;
  --line-soft: #f0ecf7;
  --body: #4b4362;
  --muted: #6b6283;
  --accent: #2ec4b6;
  --accent-ink: #0b7a70;
  --violet: #6e4bff;
  --violet-soft: #ece6ff;
  --violet-ink: #3b2a8f;
  --warm: #fff3d6;
  --warm-ink: #7a4b00;
  --danger: #b42318;
  --radius: 24px;
  --shadow: 6px 6px 0 var(--ink);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Bricolage Grotesque", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Entrance animations only on a fresh visit, not on every step of a multi-step form. */
.continuing .step, .continuing .appt { animation: none; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 var(--text); }
a { color: var(--violet-ink); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.display { font-family: var(--display); letter-spacing: -0.02em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 560px; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.js .js-hide { display: none !important; }

/* ---------- Top bars ---------- */
.site-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--accent); display: grid; place-items: center; transform: rotate(-6deg); flex: 0 0 auto; }
.blob { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 46% 54% 41% 59% / 55% 42% 58% 45%; background: var(--violet); color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px; animation: morph 9s ease-in-out infinite; flex: 0 0 auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--ink); font-size: 14px; font-weight: 700; }
.top-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-weight: 700; }
.top-links a { color: var(--ink); }

.panel-bar { background: var(--ink); color: #fff; }
.panel-bar .inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 14px 20px; max-width: 1180px; margin: 0 auto; }
.panel-bar .logo { color: #fff; font-size: 21px; }
.panel-bar .logo-mark { width: 36px; height: 36px; background: var(--accent); color: var(--ink); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.tabs a, .tabs button { color: #d8d0f2; text-decoration: none; font-weight: 700; padding: 0 14px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; }
.tabs a:hover, .tabs button:hover { color: #fff; }
.tabs a[aria-current="page"] { background: #fff; color: var(--ink); }
.tabs form { margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 16px; border: 1.5px solid var(--ink); font-weight: 800; font-size: 16px; text-decoration: none; background: var(--paper); color: var(--ink); transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { color: var(--ink); }
.btn-primary { background: var(--accent); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #2e2547; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; box-shadow: 4px 4px 0 var(--ink); }
.btn-danger:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-small { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 12px; border-color: var(--line); background: var(--soft); font-weight: 700; }
.btn-small:hover { border-color: var(--ink); }
.btn-small.danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-block { width: 100%; }
.btn:disabled { background: #e9e4f3; color: var(--muted); border-color: #c7bfdb; box-shadow: none; transform: none; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; font-weight: 700; color: var(--violet-ink); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Cards and notices ---------- */
.card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card + .card { margin-top: 22px; }
.card h2 { margin: 0 0 6px; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
.card > p { margin: 0 0 16px; color: var(--body); }
.notice { padding: 14px 18px; border-radius: 16px; background: var(--warm); border: 1.5px solid #f0d58a; color: var(--warm-ink); font-weight: 500; }
.notice.ok { background: #e3f7f4; border-color: #9fe0d8; color: #075c54; }
.page-title { margin: 40px 0 8px; font-family: var(--display); font-size: clamp(36px, 5vw, 60px); line-height: .98; letter-spacing: -0.03em; }
.page-lead { margin: 0 0 28px; color: var(--body); font-size: 18px; max-width: 640px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--warm); color: var(--warm-ink); }
.badge.violet { background: var(--violet-soft); color: var(--violet-ink); }
.badge.off { background: #ece9f2; color: var(--muted); }

/* ---------- Forms ---------- */
form > div, .field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 700; font-size: 15px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--soft); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); box-shadow: 4px 4px 0 var(--violet); background: var(--paper); }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--violet); }
form > div:has(> input[type="checkbox"]) { flex-direction: row; align-items: center; gap: 10px; }
.errorlist { list-style: none; margin: 0; padding: 10px 14px; border-radius: 12px; background: #fdecea; color: var(--danger); font-weight: 600; font-size: 14px; }
.errorlist li + li { margin-top: 4px; }
.helptext { font-size: 14px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.auth { max-width: 480px; margin: 32px auto 64px; }
.auth .card { padding: 32px; }
.auth h1 { margin: 0 0 6px; font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: -0.03em; }
.auth .sub { margin: 0 0 24px; color: var(--body); }
.auth .alt { margin-top: 18px; text-align: center; color: var(--body); }

/* ---------- Booking: hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0 40px; }
.hero h1 { margin: 0; font-family: var(--display); font-size: clamp(46px, 7.4vw, 104px); line-height: .92; font-weight: 800; letter-spacing: -0.03em; max-width: 820px; }
.hl { position: relative; display: inline-block; color: var(--violet); }
.hl svg { position: absolute; left: -2%; bottom: -0.18em; width: 104%; height: 0.32em; overflow: visible; }
.hl path { stroke: var(--accent); stroke-width: 7; fill: none; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s .4s cubic-bezier(.65, 0, .35, 1) forwards; }
.lead { font-size: 19px; max-width: 540px; margin: 22px 0 0; color: var(--body); }
.spin-badge { position: relative; width: 150px; height: 150px; flex: 0 0 auto; }
.spin-badge .ring { width: 150px; height: 150px; animation: spin 18s linear infinite; }
.spin-badge .ring text { font-family: var(--text); font-weight: 700; font-size: 13.5px; letter-spacing: 2.4px; fill: var(--ink); }
.spin-badge .core { position: absolute; inset: 38px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--ink); }

/* ---------- Booking: steps ---------- */
.booking { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.steps { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.step { background: var(--paper); border-radius: 28px; padding: 28px; border: 1.5px solid var(--ink); box-shadow: var(--shadow); animation: rise .6s both; scroll-margin-top: 16px; }
.step:nth-child(2) { animation-delay: .06s; } .step:nth-child(3) { animation-delay: .12s; } .step:nth-child(4) { animation-delay: .18s; } .step:nth-child(5) { animation-delay: .24s; }
.step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.step-head h2 { margin: 0; font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }
.num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.step.done .num { color: var(--accent); -webkit-text-stroke: 0; }
.step-empty { padding: 18px; border-radius: 16px; border: 1.5px dashed #c7bfdb; color: var(--muted); }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.svc { position: relative; display: block; margin: 0; font-weight: 400; }
.svc-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; height: 100%; padding: 18px; border-radius: 20px; border: 1.5px solid var(--line); background: var(--soft); min-height: 150px; cursor: pointer; transition: transform .25s var(--spring), background .2s, border-color .2s; }
.svc:hover .svc-body { transform: translateY(-4px) rotate(-1deg); border-color: var(--ink); }
.svc .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--paper); border: 1.5px solid var(--ink); color: var(--violet); }
.svc .nm { font-weight: 700; font-size: 17px; line-height: 1.2; }
.dur { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); }
.svc input:checked + .svc-body { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-4px) rotate(-1.5deg); animation: pop .35s var(--spring); }
.svc input:checked + .svc-body .ic { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.svc input:checked + .svc-body .dur { background: #fff; color: var(--ink); }
.svc input:focus-visible + .svc-body, .pro input:focus-visible + .pro-body, .slot input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 3px; }

.pros { display: flex; flex-wrap: wrap; gap: 14px; }
.pro { position: relative; margin: 0; font-weight: 400; }
.pro-body { display: flex; align-items: center; gap: 14px; padding: 11px 22px 11px 11px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--soft); min-height: 68px; cursor: pointer; transition: transform .25s var(--spring), border-color .2s; }
.pro:hover .pro-body { transform: translateY(-3px); border-color: var(--ink); }
.pro .av { width: 46px; height: 46px; font-size: 20px; }
.pro .pn { font-weight: 700; font-size: 17px; }
.pro input:checked + .pro-body { border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 4px var(--violet); animation: pop .35s var(--spring); }
.av { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-family: var(--display); color: var(--ink); flex: 0 0 auto; }

/* ---------- Booking: month day strip ---------- */
.strip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.strip-head strong { font-family: var(--display); font-size: 20px; }
.strip-nav { display: flex; gap: 8px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); display: inline-grid; place-items: center; color: var(--ink); text-decoration: none; transition: transform .2s var(--spring); }
.round:hover { transform: scale(1.08); color: var(--ink); }
.round[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.days { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { flex: 0 0 auto; width: 72px; min-height: 76px; padding: 10px 0; border-radius: 18px; border: 1.5px solid var(--line); background: var(--soft); display: flex; flex-direction: column; align-items: center; gap: 2px; scroll-snap-align: start; transition: transform .25s var(--spring); }
.day small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day strong { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.1; }
.day:hover { transform: translateY(-3px); border-color: var(--ink); }
.day.today { border-color: var(--ink); }
.day.selected { background: var(--violet); border-color: var(--violet); color: #fff; animation: pop .35s var(--spring); }
.day.selected small { color: #ece6ff; }
.day:disabled { opacity: .45; cursor: not-allowed; transform: none; border-color: var(--line); background: repeating-linear-gradient(-45deg, #f1edf8 0 6px, var(--soft) 6px 12px); }

/* ---------- Booking: slots ---------- */
.period { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 4px 0 10px; color: var(--body); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin: 0 0 16px; padding: 0; border: 0; }
.slot { position: relative; margin: 0; }
.slot span { display: block; text-align: center; padding: 12px 0; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; transition: transform .2s var(--spring); }
.slot:hover span { transform: scale(1.06); border-color: var(--ink); }
.slot input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); animation: pop .35s var(--spring); }

/* ---------- Ticket ---------- */
.side { flex: 1 1 340px; min-width: 0; position: sticky; top: 20px; }
.ticket { position: relative; background: var(--paper); border-radius: 28px; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.t-top { padding: 24px 26px 20px; border-radius: 26px 26px 0 0; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.t-top .sparkle { position: absolute; right: -20px; top: -20px; width: 120px; height: 120px; color: var(--accent); animation: spin 14s linear infinite; }
.t-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #d8d0f2; }
.t-name { font-family: var(--display); font-size: 30px; font-weight: 800; margin: 4px 0 14px; letter-spacing: -0.02em; position: relative; }
.t-bar { height: 8px; border-radius: 999px; background: #3a3156; overflow: hidden; }
.t-bar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .5s var(--spring); }
.t-progress { margin-top: 10px; font-size: 13px; color: #d8d0f2; font-weight: 700; }
.perf { position: relative; height: 0; border-top: 2px dashed var(--ink); margin: 0 22px; }
.perf::before, .perf::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--ground); border: 1.5px solid var(--ink); }
.perf::before { left: -39px; clip-path: inset(0 0 0 50%); }
.perf::after { right: -39px; clip-path: inset(0 50% 0 0); }
.rows { padding: 22px 26px 8px; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1.5px solid var(--line-soft); }
.row:last-child { border-bottom: 0; }
.row dt { font-size: 14px; color: var(--muted); font-weight: 500; }
.row dd { margin: 0; font-weight: 700; text-align: right; }
.row dd.big { font-family: var(--display); font-size: 26px; }
.ph { display: inline-block; width: 110px; height: 14px; border-radius: 999px; background: linear-gradient(90deg, #efeaf8 0%, #e2dbf3 50%, #efeaf8 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; vertical-align: middle; }
.t-foot { padding: 12px 26px 26px; }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.stamp { position: absolute; left: 20px; top: 132px; padding: 10px 18px; border: 4px solid var(--accent-ink); border-radius: 12px; color: var(--accent-ink); font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: .06em; transform: rotate(-12deg); background: rgba(255, 255, 255, .9); animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) both; pointer-events: none; }
.burst { position: absolute; left: 50%; top: 170px; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 10px; height: 16px; border-radius: 3px; opacity: 0; transform: rotate(var(--angle)) translateY(0); animation: confetti 1.2s cubic-bezier(.2, .8, .3, 1) forwards; }
.ticket-page { max-width: 480px; margin: 8px auto 40px; }
.ticket-msg { padding: 6px 26px 26px; text-align: center; }
.ticket-msg h2 { margin: 6px 0 6px; font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.ticket-msg p { margin: 0 0 6px; color: var(--body); }
.ticket.cancelled .t-top { background: #5b5470; }
.ticket.cancelled .rows dd { text-decoration: line-through; color: var(--muted); }

/* ---------- Marquee and footers ---------- */
.marquee { margin-top: 64px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); overflow: hidden; background: var(--ink); color: #fff; }
.marquee .track { display: flex; gap: 40px; width: max-content; padding: 18px 0; animation: marquee 28s linear infinite; font-family: var(--display); font-size: 30px; font-weight: 600; }
.marquee .track span { display: inline-flex; align-items: center; gap: 40px; white-space: nowrap; }
.marquee svg { color: var(--accent); }
.site-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px 0 32px; font-size: 14px; color: var(--body); }

/* ---------- Panel ---------- */
.agenda-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 36px 0 24px; }
.eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-ink); }
.agenda-head h1 { margin: 6px 0 0; font-family: var(--display); font-size: clamp(40px, 5.6vw, 72px); line-height: .95; font-weight: 800; letter-spacing: -0.03em; }
.day-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.day-nav .round { width: 52px; height: 52px; }
.date-jump { display: flex; gap: 8px; align-items: center; margin: 0; }
.date-jump input { width: auto; padding: 11px 12px; }
.panel-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.panel-main { flex: 999 1 560px; min-width: 0; }
.panel-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 22px; padding: 18px 20px; }
.stat b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; font-weight: 800; }
.stat span { color: var(--body); font-weight: 500; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.appts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.appt { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 24px; padding: 18px 20px; transition: transform .2s var(--spring), border-color .2s; animation: rise .5s both; }
.appt:hover { transform: translateX(4px); border-color: var(--ink); }
.appt.next { border-color: var(--ink); box-shadow: 6px 6px 0 var(--violet); }
.appt.past { opacity: .6; }
.appt .time { min-width: 96px; }
.appt .time b { display: block; font-family: var(--display); font-size: 30px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.appt .time span { font-size: 13px; color: var(--muted); font-weight: 700; }
.appt .who { flex: 1 1 220px; min-width: 0; }
.appt .who strong { font-size: 18px; }
.appt .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; color: var(--body); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); animation: pulse 1.4s ease-out infinite; }
.appt-actions { display: flex; gap: 8px; }
.empty-day { padding: 32px; border-radius: 24px; border: 1.5px dashed #c7bfdb; text-align: center; color: var(--body); background: rgba(255, 255, 255, .5); }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { flex: 1; min-width: 0; font-size: 14px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 4px; list-style: none; padding: 0; }
.week a { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; }
.week .bar-wrap { display: flex; align-items: flex-end; height: 96px; width: 100%; }
.week i { display: block; width: 100%; border-radius: 8px; background: var(--violet-soft); transition: height .5s var(--spring); }
.week a:hover i { background: #d6cbff; }
.week .count { font-family: var(--display); font-size: 16px; color: var(--ink); }
.week a[aria-current="date"] i { background: var(--violet); }
.week a[aria-current="date"] { color: var(--ink); }

/* ---------- Lists in the panel ---------- */
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 22px; padding: 18px 20px; transition: border-color .2s, transform .2s var(--spring); }
.item:hover { border-color: var(--ink); transform: translateY(-2px); }
.item strong { font-size: 18px; }
.item .hours { list-style: none; margin: 6px 0 0; padding: 0; color: var(--body); font-size: 14px; }
.hours-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0 12px; padding: 16px; margin: 0 0 12px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--soft); }
.hours-row > div { margin-bottom: 0; }
.hours-row legend { font-weight: 700; padding: 0 6px; }

/* ---------- Landing ---------- */
.landing-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; margin: 40px 0 80px; }
.landing-hero .copy { flex: 999 1 520px; min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--ink); font-weight: 700; font-size: 14px; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); animation: blink 1.6s ease-in-out infinite; }
.landing-hero h1 { margin: 22px 0 0; font-family: var(--display); font-size: clamp(48px, 7vw, 96px); line-height: .92; font-weight: 800; letter-spacing: -0.03em; }
.strike { position: relative; color: #8a80a6; }
.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .12em; background: var(--accent); border-radius: 999px; transform: rotate(-4deg) scaleX(0); transform-origin: left; animation: strike .7s .5s cubic-bezier(.65, 0, .35, 1) forwards; }
.violet { color: var(--violet); }
.landing-hero .lead { font-size: 20px; max-width: 560px; margin: 24px 0 32px; }
.phone-wrap { flex: 1 1 320px; display: flex; justify-content: center; position: relative; min-height: 520px; }
.phone { width: 290px; height: 520px; border-radius: 44px; background: var(--ink); padding: 14px; box-shadow: 12px 12px 0 var(--violet); transform: rotate(4deg); animation: float 6s ease-in-out infinite; }
.screen { width: 100%; height: 100%; border-radius: 32px; background: var(--ground); padding: 22px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.mini-title { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.mini-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-pill { padding: 8px 12px; border-radius: 12px; background: var(--paper); border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; }
.mini-pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.mini-ticket { margin-top: auto; background: var(--paper); border-radius: 20px; border: 1.5px solid var(--ink); padding: 14px; position: relative; }
.mini-ticket b { display: block; font-family: var(--display); font-size: 22px; }
.mini-stamp { position: absolute; right: 10px; top: -14px; padding: 4px 10px; border: 3px solid var(--accent-ink); color: var(--accent-ink); border-radius: 8px; font-weight: 800; font-family: var(--display); transform: rotate(-10deg); background: var(--paper); animation: stamp-loop 2.4s 1s cubic-bezier(.2, 1.6, .4, 1) infinite; }
.sticker { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 16px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); font-weight: 700; font-size: 14px; }
.sticker.a { left: 0; top: 60px; transform: rotate(-6deg); animation: bob 5s ease-in-out infinite; }
.sticker.b { right: 0; bottom: 70px; transform: rotate(5deg); animation: bob 5.5s .8s ease-in-out infinite; }
.sticker svg { color: var(--violet); }
.section-title { font-family: var(--display); font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; line-height: 1; margin: 0 0 36px; max-width: 760px; letter-spacing: -0.03em; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.how .card { display: flex; flex-direction: column; gap: 14px; transition: transform .25s var(--spring); }
.how .card + .card { margin-top: 0; }
.how .card:hover { transform: translateY(-6px) rotate(-1deg); }
.how .n { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.how h3 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
.how p { margin: 0; color: var(--body); }
.icon-box { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); flex: 0 0 auto; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.feat { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: var(--soft); border: 1.5px solid var(--line); }
.feat .icon-box { background: var(--accent); color: var(--ink); }
.feat h3 { margin: 0 0 4px; font-size: 18px; }
.feat p { margin: 0; color: var(--body); }
.final { margin: 96px 0 40px; padding: 56px 40px; border-radius: 36px; background: var(--violet); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.final h2 { margin: 0; font-family: var(--display); font-size: clamp(34px, 4.4vw, 58px); line-height: 1; font-weight: 800; max-width: 640px; letter-spacing: -0.03em; position: relative; }
.final .spin { position: absolute; right: -50px; bottom: -60px; width: 220px; height: 220px; color: rgba(255, 255, 255, .14); animation: spin 20s linear infinite; }
.final .btn { position: relative; }

/* ---------- Error pages ---------- */
.error-page { text-align: center; padding: 64px 0; }
.error-page .code { font-family: var(--display); font-weight: 800; font-size: clamp(96px, 18vw, 200px); line-height: .9; color: transparent; -webkit-text-stroke: 2px var(--ink); }

/* ---------- Motion ---------- */
@keyframes morph { 0%, 100% { border-radius: 46% 54% 41% 59% / 55% 42% 58% 45%; } 50% { border-radius: 58% 42% 55% 45% / 43% 57% 43% 57%; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { scale: .92; } 60% { scale: 1.06; } 100% { scale: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(2.4); } 70% { opacity: 1; transform: rotate(-12deg) scale(.92); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes stamp-loop { 0%, 15% { opacity: 0; transform: rotate(-10deg) scale(2); } 30%, 85% { opacity: 1; transform: rotate(-10deg) scale(1); } 100% { opacity: 0; transform: rotate(-10deg) scale(1); } }
@keyframes confetti { 0% { opacity: 1; transform: rotate(var(--angle)) translateY(0) rotate(0); } 100% { opacity: 0; transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) rotate(320deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(110, 75, 255, .6); } 100% { box-shadow: 0 0 0 10px rgba(110, 75, 255, 0); } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes strike { to { transform: rotate(-4deg) scaleX(1); } }
@keyframes float { 0%, 100% { transform: rotate(4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-12px); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

@media (max-width: 720px) {
  .side { position: static; }
  .hero { margin: 16px 0 24px; }
  .step, .card { padding: 20px; box-shadow: 4px 4px 0 var(--ink); }
  .spin-badge { display: none; }
  .stamp { font-size: 20px; padding: 8px 12px; top: 128px; left: 12px; }
  .appt .time { min-width: 0; }
  .appt-actions { width: 100%; }
  .appt-actions .btn-small { flex: 1; }
  .landing-hero { margin: 24px 0 48px; }
  .phone-wrap { min-height: 480px; }
  .final { padding: 36px 24px; }
  .agenda-head { margin: 24px 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hl path { stroke-dashoffset: 0; }
  .strike::after { transform: rotate(-4deg); }
  .burst { display: none; }
}

/* ---------- Plans and subscription ---------- */
.sub-banner { border-bottom: 1.5px solid var(--ink); font-size: 15px; }
.sub-banner .inner { max-width: 1180px; margin: 0 auto; padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sub-banner a { font-weight: 800; color: var(--ink); }
.sub-banner.trial { background: var(--accent); color: var(--ink); }
.sub-banner.locked { background: var(--warm); color: var(--warm-ink); }
.messages { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.plans-top { display: flex; flex-wrap: wrap; gap: 22px; align-items: stretch; margin-bottom: 32px; }
.status-card { flex: 2 1 380px; }
.status-card p { margin: 0 0 8px; color: var(--body); }
.status-line { margin-bottom: 10px !important; }
.days-left b { font-family: var(--display); font-size: 56px; line-height: 1; color: var(--ink); }
.days-left { font-weight: 700; color: var(--ink) !important; }
.trial-box { flex: 1 1 260px; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 26px; border-radius: var(--radius); background: var(--violet); color: #fff; border: 1.5px solid var(--ink); box-shadow: var(--shadow); font-family: var(--display); font-size: 22px; line-height: 1.2; }
.trial-box p { margin: 0; }
.trial-box .icon-box { background: var(--accent); color: var(--ink); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 28px; padding: 28px; box-shadow: var(--shadow); transition: transform .25s var(--spring); }
.plan:hover { transform: translateY(-6px) rotate(-.5deg); }
.plan.featured { box-shadow: 8px 8px 0 var(--violet); }
.plan.current { outline: 4px solid var(--accent); outline-offset: 4px; }
.plan h2 { margin: 0; font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; }
.plan-tag { position: absolute; top: -14px; right: 20px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; transform: rotate(3deg); }
.price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.price .amount { font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.price .per { color: var(--muted); font-weight: 700; }
.limit { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 800; padding: 10px 14px; border-radius: 14px; background: var(--violet-soft); color: var(--violet-ink); }
.plan-features { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; color: var(--body); }
.plan-features svg { color: var(--accent-ink); flex: 0 0 auto; margin-top: 2px; }
.plan form { margin: 0; }
.plan-note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.plans-foot { margin: 28px 0 48px; text-align: center; }
