@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: #37352f;
  --text-strong: #191919;
  --muted: #787774;
  --border: #e9e9e7;
  --border-strong: #d3d3d0;
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --bg-hover: #efefed;

  --pink: #d50092;
  --pink-hover: #b5007c;
  --pink-soft: #fdf0f8;
  --yellow: #ffcc00;
  --yellow-soft: #fff8db;
  --yellow-border: #f3e2a0;

  --danger: #c4314b;
  --radius: 6px;
  --radius-lg: 10px;
  --focus: 0 0 0 3px rgba(213, 0, 146, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pink); }

h1, h2, h3 { color: var(--text-strong); line-height: 1.25; margin: 0; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header */

.brand-stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--pink) 50%, var(--yellow) 50%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 16px;
  border-bottom: 1px solid var(--border);
}

.logo { display: block; line-height: 0; }
.logo img { height: 26px; width: auto; }
.logo--meridaux img { height: 23px; }
.topbar-x { color: var(--muted); font-size: 18px; }

/* Page */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.hero { padding: 64px 0 40px; }

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero mark {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 92%, transparent 92%);
  color: inherit;
  padding: 0 2px;
}

.subtitle {
  margin: 8px 0 0;
  font-size: 22px;
  color: var(--pink);
  font-weight: 500;
}

.lead { margin: 24px 0 0; font-size: 18px; }
.lead + .lead { margin-top: 16px; }

.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 32px;
  padding: 0;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
}
.facts .icon { width: 15px; height: 15px; color: var(--muted); }

.block {
  padding: 40px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.block h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.block p { margin: 0 0 12px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: var(--pink-hover); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-block { width: 100%; }

.btn:focus-visible,
.icon-btn:focus-visible,
.link-btn:focus-visible,
.day:focus-visible,
.slot:focus-visible { outline: none; box-shadow: var(--focus); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover:not(:disabled) { background: var(--bg-hover); }
.icon-btn:disabled { color: var(--border-strong); cursor: default; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
}
.link-btn:hover { color: var(--text-strong); }
.link-btn .icon { width: 16px; height: 16px; }

/* Criteria callout */

.callout {
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin: 0 0 12px;
}

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 10px; padding: 4px 0; }
.checklist .icon { margin-top: 3px; color: var(--text-strong); }

/* Experts */

.experts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.expert {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-top-width: 3px;
  border-radius: var(--radius-lg);
}
.expert--wonderbit { border-top-color: var(--pink); }
.expert--meridaux { border-top-color: var(--yellow); }

.expert h3 { font-size: 17px; font-weight: 600; }
.expert p { margin: 0; font-size: 15px; }
.expert .role { color: var(--muted); font-size: 14px; margin: 2px 0 8px; }

.avatar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  padding: 2px;
  border-radius: 50%;
}
.expert--wonderbit .avatar { background: var(--pink); }
.expert--meridaux .avatar { background: var(--yellow); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; }

/* Properties (Notion-style) */

.properties { margin: 8px 0 0; }
.properties > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 8px 0;
}
.properties dt { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); }
.properties dt .icon { width: 16px; height: 16px; margin-top: 4px; }
.properties dd { margin: 0; }

/* Booking widget */

.booking {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04), 0 4px 16px rgba(15, 15, 15, 0.04);
  overflow: hidden;
}

.step-pick { display: grid; grid-template-columns: 1fr 220px; }

.calendar { padding: 20px; }

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-month { font-weight: 600; color: var(--text-strong); text-transform: capitalize; }
.cal-nav { display: flex; gap: 4px; }

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-weekdays span {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 4px;
}

.day {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font: inherit;
  font-size: 15px;
  color: var(--border-strong);
  cursor: default;
}
.day.available {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--text-strong);
  font-weight: 600;
  cursor: pointer;
}
.day.available:hover { border-color: var(--text-strong); }
.day.selected,
.day.selected:hover { background: var(--yellow); border-color: var(--yellow); }
.day.today:not(.available) { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }

.times {
  padding: 20px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.times-title { margin: 6px 0 16px; font-weight: 600; color: var(--text-strong); }
.time-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.time-list .muted { font-size: 14px; }

.slot {
  padding: 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  font: inherit;
  font-weight: 600;
  color: var(--text-strong);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.slot:hover { border-color: var(--pink); color: var(--pink); }

.times .small { margin: 16px 0 0; }

/* Step 2 */

.step-form { display: grid; grid-template-columns: 240px 1fr; }

.summary {
  padding: 20px;
  border-right: 1px solid var(--border);
  background: var(--bg-soft);
}
.summary-title { margin: 16px 0 12px; font-weight: 600; color: var(--text-strong); }
.summary-list { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.summary-list li { display: flex; gap: 10px; padding: 4px 0; }
.summary-list .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--muted); }
#sum-date::first-letter { text-transform: uppercase; }

form { padding: 20px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-strong); }
.optional { color: var(--muted); font-weight: 400; }

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font: inherit;
  color: var(--text-strong);
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--pink); box-shadow: var(--focus); }
.field input::placeholder { color: #b4b4b0; }
.field.invalid input,
.field.invalid textarea { border-color: var(--danger); }

.check {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400 !important;
  font-size: 15px !important;
  color: var(--text) !important;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--pink); }

.field-error { margin: 4px 0 0 !important; font-size: 14px; color: var(--danger); }
.field-error:empty { display: none; }

.form-error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fdecee;
  color: var(--danger);
  font-size: 15px;
}

.form-note { margin: 10px 0 0; font-size: 14px; color: var(--muted); text-align: center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Step 3 */

.step-done { padding: 48px 24px; text-align: center; }
.step-done h3 { font-size: 22px; margin: 16px 0 12px; }
.step-done p { max-width: 460px; margin: 0 auto 12px; }
.done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--text-strong);
}
.done-icon .icon { width: 28px; height: 28px; stroke-width: 2.5; }

.mail-note {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 20px auto 0;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  font-size: 15px;
}
.mail-note .icon { margin-top: 3px; color: var(--muted); }
.step-done .mail-note p { margin: 0; max-width: none; }

/* Status */

.booking-status:empty { display: none; }
.booking-status {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--muted);
}
.booking-status.notice { background: var(--yellow-soft); color: var(--text-strong); }
.booking-status.error { background: #fdecee; color: var(--danger); }
.booking-status button { margin-left: 8px; }

.loading { opacity: 0.5; pointer-events: none; }

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.footer p { margin: 0; }

/* Responsive */

@media (max-width: 720px) {
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 34px; }
  .subtitle { font-size: 19px; }
  .lead { font-size: 17px; }
  .experts { grid-template-columns: 1fr; }
  .properties > div { grid-template-columns: 110px 1fr; gap: 12px; }
  .step-pick,
  .step-form { grid-template-columns: 1fr; }
  .times { border-left: 0; border-top: 1px solid var(--border); }
  .summary { border-right: 0; border-bottom: 1px solid var(--border); }
  .topbar { gap: 14px; }
  .logo img { height: 22px; }
  .logo--meridaux img { height: 19px; }
}
