@font-face {
  font-family: "Futurism";
  src: url("/fonts/Futurism-Regular.woff2") format("woff2");
  font-weight: 100 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Futurism";
  src: url("/fonts/Futurism-Black.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* brand */
  --brand: #6e2a15;          /* bordeaux — emphasis only */
  --brand-ink: #fffde6;
  --ink: #2a0f07;            /* headings */
  --text: #3b2a21;
  --muted: #7b6b5f;

  --butter: #fcfca2;
  --cream: #ffffce;
  --sage: #a5aa67;
  --sage-deep: #5f6433;      /* readable sage for text */
  --sage-soft: #ecedd6;
  --sky: #a6bbd0;
  --sky-soft: #e3eaf1;

  --bg: #f4f4ef;           /* canvas: soft warm white */
  --panel: #eef2f4;        /* mist — a whisper of the dusty blue */
  --avatar-bg: #c9d5df;
  --surface: #ffffff;
  --surface-2: #f9f9f5;
  --line: #ebe5c8;
  --line-strong: #d9d1ab;
  --ok: #4f6b2a;
  --danger: #a3261b;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(42, 15, 7, 0.05), 0 8px 24px rgba(42, 15, 7, 0.06);
  --shadow-lg: 0 2px 6px rgba(42, 15, 7, 0.05), 0 18px 48px rgba(42, 15, 7, 0.09);

  --font: "Futurism", "Segoe UI", "Arial Hebrew", Arial, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
h4 {
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

a {
  color: var(--brand);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid rgba(110, 42, 21, 0.35);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* pill CTA with a circular arrow pinned to one side */
.btn-primary {
  background: var(--brand);
  color: var(--brand-ink);
  justify-content: space-between;
  padding-inline: 24px 6px;
  min-height: 54px;
}

.btn-primary .btn-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--butter);
  color: var(--brand);
  flex: none;
}

.btn-primary:hover:not(:disabled) {
  background: #5a2010;
}

.btn-primary:disabled {
  opacity: 1;
  background: #e7e1c6;
  color: #9b8f78;
}

.btn-primary:disabled .btn-arrow {
  background: rgba(255, 255, 255, 0.7);
  color: #b3a88f;
}

.btn-soft {
  background: var(--sage-soft);
  color: var(--ink);
}

.btn-soft:hover:not(:disabled) {
  background: #e1e3c4;
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  min-height: 40px;
  padding: 0 12px;
  font-weight: 400;
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-danger {
  background: transparent;
  border-color: rgba(163, 38, 27, 0.35);
  color: var(--danger);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(163, 38, 27, 0.06);
}

.btn-block {
  width: 100%;
}

/* ---------------------------------------------------------------- chips, inputs */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
}

.chip svg {
  width: 16px;
  height: 16px;
  color: var(--sage-deep);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span,
.label {
  font-size: 15px;
  color: var(--ink);
}

.field .req {
  color: var(--brand);
}

.input,
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.input:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 4px rgba(165, 170, 103, 0.25);
}

.field .hint {
  font-size: 13px;
  color: var(--muted);
}

/* pill choice group (radio / checkbox) */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pills label {
  position: relative;
}

.pills input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-size: 15px;
}

.pills input:checked + span {
  border-color: var(--brand);
  background: #fbf1ec;
  color: var(--brand);
  font-weight: 900;
}

.pills input:focus-visible + span {
  outline: 3px solid rgba(110, 42, 21, 0.35);
  outline-offset: 2px;
}

/* iOS-style switch */
.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.switch .track {
  position: relative;
  flex: none;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: #d8d2b6;
  transition: background 0.2s ease;
}

.switch .track::after {
  content: "";
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: inset-inline-start 0.2s ease;
}

.switch input:checked + .track {
  background: var(--sage-deep);
}

.switch input:checked + .track::after {
  inset-inline-start: 23px;
}

.switch input:focus-visible + .track {
  outline: 3px solid rgba(110, 42, 21, 0.35);
  outline-offset: 2px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 15px;
  line-height: 1.5;
}

.alert-error {
  background: #fbebe7;
  color: var(--danger);
  border: 1px solid rgba(163, 38, 27, 0.2);
}

.alert-ok {
  background: var(--sage-soft);
  color: var(--ok);
}

.alert-info {
  background: var(--sky-soft);
  color: var(--ink);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid var(--sage-soft);
  border-top-color: var(--sage-deep);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================================================= public pages */

/* One calm, centred card: a soft mist info side and a white booking side. */
.shell {
  display: grid;
  grid-template-columns: minmax(300px, 370px) minmax(0, 1fr);
  width: min(1120px, calc(100% - 48px));
  min-height: min(760px, calc(100dvh - 80px));
  margin: 40px auto;
  background: var(--surface);
  border-radius: 32px;
  border: 1px solid rgba(42, 15, 7, 0.06);
  box-shadow: 0 1px 2px rgba(42, 15, 7, 0.03), 0 30px 70px -20px rgba(42, 15, 7, 0.12);
  overflow: hidden;
}

.panel {
  display: flex;
  flex-direction: column;
  padding: 36px 34px;
  background: var(--panel);
  border-inline-end: 1px solid rgba(42, 15, 7, 0.06);
}

.owner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  background: var(--avatar-bg);
  box-shadow: 0 0 0 3px var(--surface), 0 8px 20px -6px rgba(42, 15, 7, 0.25);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.owner-label {
  font-size: 13px;
  color: var(--muted);
}

.owner-name {
  display: block;
  font-weight: 900;
  font-size: 17px;
  color: var(--ink);
}

.panel h1 {
  font-size: clamp(28px, 2.5vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: 30px;
}

.panel .lead {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: #4d4038;
}

.panel .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.panel .chip {
  border-color: rgba(42, 15, 7, 0.07);
}

.selected-summary {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 6px 20px -8px rgba(42, 15, 7, 0.18);
}

.selected-summary .ltr {
  align-self: flex-start;
}

.selected-summary b {
  display: block;
  color: var(--ink);
  font-weight: 900;
  font-size: 17px;
}

.main {
  display: flex;
  justify-content: center;
  padding: 36px 44px 56px;
  min-width: 0;
}

.main-inner {
  width: 100%;
  max-width: 660px;
}

/* inside the white booking card the calendar is open, not boxed */
.main .cal {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

@media (min-width: 981px) {
  .cal-wrap > div:last-child {
    border-inline-start: 1px solid var(--line);
    padding-inline-start: 28px;
    min-height: 100%;
  }
}

/* stepper */
.stepper {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 6px;
  padding: 14px 0;
  background: var(--surface);
  margin-bottom: 8px;
}

.stepper li {
  list-style: none;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.stepper li .n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  font-size: 13px;
  flex: none;
}

.stepper li.active {
  color: var(--ink);
  font-weight: 900;
}

.stepper li.active .n {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}

.stepper li.done .n {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}

.step-title {
  font-size: 26px;
  margin: 8px 0 18px;
}

/* type cards on "/" */
.type-list {
  display: grid;
  gap: 14px;
}

.type-card {
  background: var(--surface-2);
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 22px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.type-card:hover {
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

.type-card .dot {
  width: 10px;
  height: 10px;
  align-self: flex-start;
  margin-top: 10px;
  border-radius: 50%;
  flex: none;
}

.type-card h2 {
  font-size: 22px;
}

.type-card p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 15px;
}

.type-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.type-card .go {
  margin-inline-start: auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--butter);
  color: var(--brand);
  flex: none;
}

/* calendar */
.cal-wrap {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 28px;
  align-items: start;
}

.cal {
  padding: 20px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-head h3 {
  font-size: 19px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.icon-btn:hover:not(:disabled) {
  border-color: var(--ink);
}

.icon-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-dow {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  padding-bottom: 6px;
}

.day {
  position: relative;
  aspect-ratio: 1;
  min-height: 40px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 16px;
  color: #b9ae9d;
  display: grid;
  place-items: center;
}

.day.available {
  background: var(--sage-soft);
  color: var(--ink);
  font-weight: 900;
}

.day.available:hover {
  background: #dfe2bd;
}

.day.today::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

.day.selected {
  background: var(--brand);
  color: var(--butter);
}

.day.selected::after {
  background: var(--butter);
}

.day:disabled {
  cursor: default;
}

.tz-line {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tz-line svg {
  width: 15px;
  height: 15px;
}

.slots h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.slot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 420px;
  overflow-y: auto;
  padding-inline-end: 4px;
}

.slot {
  min-height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--sage);
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  transition: background 0.15s ease, color 0.15s ease;
}

.slot:hover {
  background: var(--sage-soft);
}

.slot.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--butter);
}

.slots-empty {
  padding: 20px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.reminder-box {
  padding: 16px 18px;
  border-radius: var(--r);
  background: var(--sky-soft);
}

.reminder-box .summary {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.center-state {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 260px;
  text-align: center;
  color: var(--muted);
}

.page-footer {
  margin-top: 40px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* thanks + manage */
.check {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--sage);
  display: grid;
  place-items: center;
  color: #fff;
  animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}

.check svg {
  width: 38px;
  height: 38px;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: draw 0.45s 0.25s ease forwards;
}

@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.summary-card {
  padding: 20px 22px;
  margin-top: 22px;
}

.summary-card .row {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.summary-card .row:last-child {
  border-bottom: none;
}

.summary-card .row svg {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 3px;
  color: var(--sage-deep);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.prose {
  white-space: pre-line;
  line-height: 1.75;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 14px;
  background: #000;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.link-cards {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
}

.link-card svg {
  color: var(--brand);
  flex: none;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.section {
  margin-top: 30px;
}

.section h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 980px) {
  .cal-wrap {
    grid-template-columns: 1fr;
  }
  .slot-list {
    flex-direction: row;
    flex-wrap: wrap;
    max-height: none;
  }
  .slot {
    flex: 1 1 calc(33% - 8px);
    min-width: 92px;
  }
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .panel {
    padding: 22px 18px 22px;
    border-inline-end: none;
    border-bottom: 1px solid rgba(42, 15, 7, 0.06);
  }
  .avatar {
    width: 52px;
    height: 52px;
  }
  .panel h1 {
    font-size: 26px;
    margin-top: 18px;
  }
  .panel .lead {
    font-size: 15.5px;
  }
  .panel .chips {
    margin-top: 14px;
  }
  .selected-summary {
    margin-top: 16px;
  }
  .main {
    padding: 18px 16px 36px;
  }
  .step-title {
    font-size: 23px;
  }
  .stepper li .label-text {
    display: none;
  }
  .stepper li.active .label-text {
    display: inline;
  }
  .type-card {
    padding: 18px 16px;
    gap: 14px;
  }
  .step-actions .btn-primary {
    flex: 1;
  }
}

/* single-choice questions: full-width choices, easy to tap, long answers wrap */
.pills.stack {
  flex-direction: column;
  align-items: stretch;
}

.pills.stack span {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 14px;
  line-height: 1.45;
}

.pills.stack input:checked + span {
  font-weight: 400;
}
