/* ======================================================
   DTF Studio Helsinki — Booking App
   Manila + Ink palette, IBM Plex Mono + Source Serif 4
   ====================================================== */

/* ---- Custom Properties ---- */
:root {
  --bg: #f4e4bc;           /* manila body */
  --panel: #fbf2d6;        /* lighter manila card */
  --panel-strong: #f7ead0; /* slightly deeper card inner */
  --line: #1a1a1a;         /* ink border */
  --line-soft: rgba(26,26,26,0.18);
  --soft: #6b5c3e;         /* warm medium-dark for secondary text */
  --text: #1a1a1a;         /* ink primary text */
  --accent: #b22222;       /* crimson — badge / selected highlight */
  --yellow: #d4a017;       /* cure-yellow — hover / active */
  --shadow: 0 8px 40px rgba(26,26,26,0.12);
  --radius: 2px;           /* Nordic restraint — square corners */
  --radius-sm: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* 8px spacing grid */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
}

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ---- Ambient Background ---- */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  pointer-events: none;
}

/* ---- App Container ---- */
.app {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100dvh;
  padding: 48px 20px 64px;
}

/* ---- Screen System ---- */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: inherit;
  opacity: 0;
  transform: translateY(24px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  will-change: opacity, transform;
}

.screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

.screen.exiting {
  opacity: 0;
  transform: translateY(-16px);
}

/* ---- Card ---- */
.card {
  width: 100%;
  max-width: 520px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 40px 36px;
}

.card--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Wordmark ---- */
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: var(--sp-3);
  justify-content: center;
}

.wordmark__dtf {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.wordmark__studio {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* ---- Typography ---- */
.hero-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text);
}

.hero-sub {
  font-family: 'Source Serif 4', Georgia, serif;
  text-align: center;
  color: var(--soft);
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: var(--sp-4);
  line-height: 1.6;
}

.screen-heading {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  color: var(--text);
}

.screen-sub {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: var(--sp-3);
}

.screen-sub strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- Back Button ---- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: var(--sp-3);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.back-btn:hover {
  color: var(--text);
}

/* ---- Meeting Type Cards ---- */
.meeting-types {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.meeting-card {
  background: var(--panel-strong);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.meeting-card:hover {
  border-color: var(--line);
  background: var(--panel);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(26,26,26,0.1);
}

.meeting-card:active {
  transform: translateY(0);
}

.meeting-card__info {
  flex: 1;
  min-width: 0;
}

.meeting-card__title {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: var(--text);
}

.meeting-card__desc {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--soft);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.4;
}

.meeting-card__duration {
  flex-shrink: 0;
  background: rgba(178,34,34,0.08);
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid rgba(178,34,34,0.2);
}

.meeting-card__arrow {
  flex-shrink: 0;
  color: var(--soft);
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s;
}

.meeting-card:hover .meeting-card__arrow {
  opacity: 1;
  transform: translateX(3px);
  color: var(--text);
}

/* ---- Selected Type Badge ---- */
.selected-type-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  background: rgba(178,34,34,0.08);
  border: 1px solid rgba(178,34,34,0.25);
  border-radius: var(--radius-sm);
  padding: 6px var(--sp-2);
  margin-bottom: var(--sp-3);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

/* ---- Calendar ---- */
.calendar {
  margin-bottom: var(--sp-3);
}

.calendar__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}

.calendar__month {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}

.calendar__arrow {
  background: var(--panel-strong);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--soft);
  cursor: pointer;
  transition: all 0.2s;
}

.calendar__arrow:hover {
  border-color: var(--line);
  color: var(--text);
  background: var(--panel);
}

.calendar__arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: var(--sp-1);
}

.calendar__weekdays span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  opacity: 0.7;
  padding: 4px 0;
}

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

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.cal-day:hover:not(.cal-day--disabled):not(.cal-day--empty) {
  background: rgba(212,160,23,0.15);
  color: var(--text);
}

.cal-day--today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.cal-day--disabled {
  color: rgba(26,26,26,0.22);
  cursor: not-allowed;
}

.cal-day--empty {
  cursor: default;
}

.cal-day--selected {
  background: var(--text) !important;
  color: var(--bg) !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(26,26,26,0.2);
}

.cal-day--selected::after {
  display: none;
}

/* ---- Time Slots ---- */
.timeslots {
  border-top: 1.5px solid var(--line-soft);
  padding-top: 20px;
  min-height: 80px;
}

.timeslots__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--soft);
  margin-bottom: 14px;
}

.timeslots__loading {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 0.85rem;
  padding: 12px 0;
}

.timeslots__loading.visible {
  display: flex;
}

.timeslots__empty {
  display: none;
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--soft);
  font-size: 0.85rem;
  padding: 12px 0;
  text-align: center;
}

.timeslots__empty.visible {
  display: block;
}

.timeslots__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.timeslot {
  background: var(--panel-strong);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.timeslot:hover {
  border-color: var(--yellow);
  background: rgba(212,160,23,0.1);
  color: var(--text);
}

.timeslot--selected {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(178,34,34,0.15);
  color: var(--accent) !important;
  background: rgba(178,34,34,0.06);
}

.timeslots__continue {
  margin-top: var(--sp-3);
  width: 100%;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

/* ---- Spinner ---- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-soft);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ---- Primary Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border-radius: var(--radius);
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
  padding: 14px 32px;
  font-size: 0.78rem;
  box-shadow: 0 4px 16px rgba(26,26,26,0.18);
}

.btn--primary:hover:not(:disabled) {
  background: #2a2a2a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(26,26,26,0.24);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn--primary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---- Ghost Button ---- */
.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--line-soft);
  color: var(--soft);
  padding: 14px 32px;
  font-size: 0.78rem;
}

.btn--ghost:hover:not(:disabled) {
  border-color: var(--line);
  color: var(--text);
}

/* ---- Secondary Button ---- */
.btn--secondary {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--text);
  padding: 14px 32px;
  font-size: 0.78rem;
  text-decoration: none;
}

.btn--secondary:hover:not(:disabled) {
  background: var(--text);
  color: var(--bg);
}

/* ---- Link Button ---- */
.link-btn {
  background: none;
  border: none;
  color: var(--soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: var(--sp-1) 0;
  transition: color 0.2s;
  margin-top: var(--sp-1);
  text-decoration: none;
}

.link-btn:hover {
  color: var(--text);
}

/* ---- Booking Summary ---- */
.booking-summary {
  background: var(--panel-strong);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: var(--sp-2) 20px;
  margin-bottom: var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-summary__type {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.booking-summary__datetime {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.88rem;
  color: var(--soft);
  font-weight: 400;
}

/* ---- Form Fields ---- */
.details-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-field {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
}

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

.field__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
}

.field__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
  font-family: 'Source Serif 4', Georgia, serif;
}

.field__input {
  background: var(--panel);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.field__input::placeholder {
  color: var(--soft);
  opacity: 0.6;
}

.field__input:focus {
  border-color: var(--line);
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

.field__input--textarea {
  resize: vertical;
  min-height: 80px;
}

.field__input--invalid {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(178,34,34,0.08);
}

.field__error {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  min-height: 0;
  overflow: hidden;
  transition: all 0.2s;
}

.booking-error {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  padding: 12px var(--sp-2);
  border-radius: var(--radius-sm);
  background: rgba(178,34,34,0.06);
  border: 1px solid rgba(178,34,34,0.2);
  display: none;
  margin-bottom: 12px;
}

.booking-error.visible {
  display: block;
}

/* ---- Verification Code Input ---- */
.verify-icon {
  margin-bottom: 20px;
  opacity: 0.9;
}

.code-input {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  justify-content: center;
  margin: var(--sp-3) 0 var(--sp-2);
}

.code-box {
  width: 44px;
  height: 52px;
  background: var(--panel-strong);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: var(--accent);
}

.code-box:focus {
  border-color: var(--line);
  box-shadow: 0 0 0 3px rgba(26,26,26,0.08);
}

.code-dash {
  color: var(--soft);
  opacity: 0.4;
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0 2px;
}

/* ---- Success Checkmark Animation ---- */
.success-check {
  width: 80px;
  height: 80px;
  margin-bottom: var(--sp-3);
}

.success-check__svg {
  width: 100%;
  height: 100%;
}

.success-check__circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: circle-draw 0.6s 0.2s var(--ease) forwards;
}

.success-check__tick {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: tick-draw 0.4s 0.7s var(--ease) forwards;
}

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

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

/* ---- Confirmed Summary ---- */
.confirmed-summary {
  background: var(--panel-strong);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 18px 24px;
  margin: var(--sp-1) 0 var(--sp-3);
  width: 100%;
  max-width: 360px;
}

.confirmed-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.confirmed-summary__row + .confirmed-summary__row {
  border-top: 1px solid var(--line-soft);
}

.confirmed-summary__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
}

.confirmed-summary__value {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

/* ---- Utilities ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---- Focus-visible ---- */
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(26,26,26,0.18);
  border-radius: 3px;
}

/* ---- Booking Summary Questions ---- */
.booking-summary__questions {
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line-soft);
}

.booking-summary__questions-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}

.booking-summary__questions-list {
  list-style: none;
  padding: 0;
}

.booking-summary__questions-list li {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.88rem;
  color: var(--soft);
  padding: 6px 0 6px var(--sp-2);
  position: relative;
  line-height: 1.5;
}

.booking-summary__questions-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- Questionnaire Screen ---- */
.screen--questionnaire .card {
  max-width: 520px;
}

#questionnaireForm {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#questionnaireForm .field {
  margin-bottom: 20px;
}

#questionnaireForm .field:last-of-type {
  margin-bottom: 0;
}

/* ---- Loading overlay for booking ---- */
.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(244,228,188,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ---- Timezone Indicator & Override ---- */
.timezone-indicator {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--soft);
  opacity: 0.8;
  margin-top: 12px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tz-change-link {
  color: var(--text);
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.tz-change-link:hover {
  opacity: 0.75;
}

.tz-dropdown {
  display: none;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  background: var(--panel-strong);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 6px;
  overflow: hidden;
}

.tz-dropdown.visible {
  display: flex;
}

.tz-option {
  background: none;
  border: none;
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tz-option:hover {
  background: rgba(212,160,23,0.12);
  color: var(--text);
}

/* ---- Skeleton Loading ---- */
.skeleton-cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.skeleton-card {
  background: var(--panel-strong);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.skeleton-line {
  height: 14px;
  border-radius: 2px;
  background: rgba(26,26,26,0.08);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line--title {
  width: 60%;
  height: 18px;
  margin-bottom: 10px;
}

.skeleton-line--text {
  width: 85%;
  margin-bottom: 8px;
}

.skeleton-pill {
  width: 60px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: rgba(26,26,26,0.05);
  animation: skeleton-pulse 1.5s ease-in-out infinite 0.2s;
}

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.skeleton-slots {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.skeleton-slot {
  width: 80px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(26,26,26,0.08);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-slot:nth-child(2) { animation-delay: 0.1s; width: 72px; }
.skeleton-slot:nth-child(3) { animation-delay: 0.2s; width: 84px; }
.skeleton-slot:nth-child(4) { animation-delay: 0.3s; width: 76px; }
.skeleton-slot:nth-child(5) { animation-delay: 0.4s; width: 80px; }
.skeleton-slot:nth-child(6) { animation-delay: 0.5s; width: 68px; }

/* ---- Studio Byline ---- */
.studio-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-2);
}

.studio-byline__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.studio-byline__name {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}

.studio-byline__cred {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--soft);
}

.studio-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--text);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.studio-badge__initials {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--bg);
  letter-spacing: 0.08em;
}

.privacy-text {
  text-align: center;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.78rem;
  color: var(--soft);
  opacity: 0.75;
  margin-top: var(--sp-2);
  font-weight: 400;
}

.testimonial {
  text-align: center;
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.testimonial__quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--soft);
  line-height: 1.5;
}

/* ---- Welcome Footer ---- */
.welcome-top {
  text-align: center;
  margin-bottom: var(--sp-3);
}

.wordmark--hero {
  margin-bottom: 8px;
  justify-content: center;
}

.welcome-footer {
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1.5px solid var(--line-soft);
}

/* ---- Error Recovery ---- */
.booking-error .retry-btn {
  display: inline-block;
  margin-top: 8px;
  background: none;
  border: 1px solid rgba(178,34,34,0.4);
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.booking-error .retry-btn:hover {
  background: rgba(178,34,34,0.08);
  border-color: rgba(178,34,34,0.6);
}

/* ==============================================================
   MOBILE-FIRST: 560px and below
   ============================================================== */

@media (max-width: 560px) {
  .app {
    padding:
      calc(var(--sp-2) + env(safe-area-inset-top))
      calc(var(--sp-2) + env(safe-area-inset-right))
      calc(var(--sp-4) + env(safe-area-inset-bottom))
      calc(var(--sp-2) + env(safe-area-inset-left));
  }

  .card {
    padding: var(--sp-3) var(--sp-2);
    border-radius: var(--radius);
  }

  .hero-heading {
    font-size: clamp(1.2rem, 7vw, 1.5rem);
    margin-bottom: var(--sp-1);
  }

  .hero-sub {
    font-size: 0.88rem;
    margin-bottom: var(--sp-3);
    line-height: 1.45;
  }

  .wordmark {
    margin-bottom: var(--sp-3);
  }

  .welcome-footer {
    margin-top: var(--sp-3);
    padding-top: var(--sp-2);
  }

  .screen-heading {
    font-size: 1.2rem;
    margin-bottom: var(--sp-1);
  }

  .screen-sub {
    font-size: 0.85rem;
    margin-bottom: var(--sp-2);
  }

  .meeting-types {
    gap: var(--sp-1);
  }

  .meeting-card {
    padding: var(--sp-2);
    gap: var(--sp-1);
    min-height: 44px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .meeting-card__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .meeting-card__title {
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    margin-bottom: 0;
  }

  .meeting-card__desc {
    font-size: 0.78rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .meeting-card__duration {
    font-size: 0.62rem;
    padding: 3px var(--sp-1);
    align-self: flex-start;
    margin-top: 2px;
  }

  .meeting-card__arrow {
    display: none;
  }

  .calendar {
    margin-bottom: var(--sp-2);
  }

  .calendar__nav {
    margin-bottom: var(--sp-1);
  }

  .calendar__arrow {
    width: 44px;
    height: 44px;
  }

  .calendar__grid {
    gap: 2px;
  }

  .cal-day {
    font-size: 0.78rem;
    min-height: 40px;
    min-width: 40px;
  }

  .timeslots {
    padding-top: var(--sp-2);
    min-height: 64px;
  }

  .timeslots__label {
    margin-bottom: var(--sp-1);
  }

  .timeslots__grid {
    gap: 10px;
  }

  .timeslot {
    padding: 10px var(--sp-2);
    font-size: 0.82rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .timeslots__continue {
    margin-top: var(--sp-2);
  }

  .details-form {
    gap: var(--sp-2);
  }

  .field__input {
    min-height: 48px;
    font-size: 16px;
    padding: 12px 14px;
  }

  .field__input--textarea {
    min-height: 88px;
  }

  .booking-summary {
    padding: 12px var(--sp-2);
    margin-bottom: var(--sp-2);
  }

  .booking-summary__type {
    font-size: 0.78rem;
  }

  .booking-summary__datetime {
    font-size: 0.82rem;
  }

  .booking-error {
    margin-bottom: var(--sp-1);
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  .btn {
    min-height: 48px;
    font-size: 0.78rem;
    padding: 14px var(--sp-3);
    width: 100%;
  }

  .back-btn {
    min-height: 44px;
    padding: 10px 0;
  }

  .link-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .verify-icon {
    margin-bottom: var(--sp-2);
  }

  .code-input {
    margin: var(--sp-2) 0 var(--sp-1);
    gap: 6px;
  }

  .code-box {
    width: 42px;
    height: 50px;
    font-size: 16px;
  }

  .success-check {
    width: 64px;
    height: 64px;
    margin-bottom: var(--sp-2);
  }

  .confirmed-summary {
    padding: 14px var(--sp-2);
    margin: var(--sp-1) 0 var(--sp-2);
    max-width: 100%;
  }

  .confirmed-summary__row {
    padding: var(--sp-1) 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .confirmed-summary__label {
    font-size: 0.65rem;
  }

  .confirmed-summary__value {
    font-size: 0.85rem;
  }
}

/* ==============================================================
   EXTRA SMALL: 360px and below
   ============================================================== */

@media (max-width: 360px) {
  .card {
    padding: var(--sp-2) 14px;
  }

  .hero-heading {
    font-size: 1.2rem;
  }

  .studio-badge {
    width: 34px;
    height: 34px;
  }

  .studio-badge__initials {
    font-size: 10px;
  }

  .cal-day {
    min-width: 34px;
    min-height: 34px;
    font-size: 0.72rem;
  }

  .calendar__weekdays span {
    font-size: 0.58rem;
  }

  .code-box {
    width: 38px;
    height: 46px;
  }

  .code-dash {
    margin: 0;
  }

  .meeting-card {
    padding: 12px;
  }

  .meeting-card__title {
    font-size: 0.78rem;
  }
}

/* ==============================================================
   EXTRA SMALL: 380px and below — full-width timeslots
   ============================================================== */

@media (max-width: 380px) {
  .timeslots__grid {
    flex-direction: column;
  }

  .timeslot {
    width: 100%;
  }
}

/* ---- Calendar Buttons ---- */
.calendar-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  width: 100%;
  max-width: 360px;
}

/* ---- Meet Link ---- */
.meet-link {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  width: 100%;
  max-width: 360px;
  margin-bottom: var(--sp-2);
}

.meet-link .btn--secondary {
  flex: 1;
}

.btn--copy {
  background: none;
  border: 1.5px solid var(--line-soft);
  color: var(--soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn--copy:hover {
  border-color: var(--line);
  color: var(--text);
}

/* ---- Confirmed Actions ---- */
.confirmed-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  margin-top: var(--sp-2);
}

.confirmed-actions__divider {
  color: var(--soft);
  opacity: 0.4;
  font-size: 1rem;
}

.confirmed-actions .link-btn {
  margin-top: 0;
  font-size: 0.75rem;
  text-decoration: none;
}

/* ============================================================
   BOOKING CONFIRMATION MODAL
   ============================================================ */
.booking-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(26,26,26,0.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.booking-modal-overlay.visible { display: flex; opacity: 1; }

.booking-modal {
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  max-width: 460px; width: 100%;
  padding: 36px 32px;
  box-shadow: 0 24px 80px rgba(26,26,26,0.3);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  opacity: 0;
  max-height: 85vh; overflow-y: auto;
}
.booking-modal-overlay.visible .booking-modal {
  transform: translateY(0) scale(1); opacity: 1;
}

.booking-modal__heading {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700; font-size: 1.2rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text); margin-bottom: 24px;
  text-align: center;
}

.booking-modal__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
}

.booking-modal__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.booking-modal__row:last-child {
  border-bottom: none;
}

.booking-modal__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--soft);
  flex-shrink: 0;
  padding-top: 2px;
}

.booking-modal__value {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  padding-left: 12px;
  word-break: break-word;
}

.booking-modal__section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--accent);
  margin-top: 8px;
  margin-bottom: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.booking-modal__qa {
  padding: 6px 0;
}

.booking-modal__question {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.78rem;
  color: var(--soft);
  font-weight: 400;
  margin-bottom: 2px;
}

.booking-modal__answer {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
}

.booking-modal__confirm {
  width: 100%;
  padding: 14px; border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 700;
  background: var(--text); color: var(--bg);
  border: none; cursor: pointer;
  transition: all 0.25s var(--ease);
  margin-bottom: 10px;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.booking-modal__confirm:hover {
  background: #2a2a2a;
  box-shadow: 0 6px 24px rgba(26,26,26,0.2);
}

.booking-modal__confirm.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.booking-modal__confirm.btn--loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(244,228,188,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.booking-modal__edit {
  width: 100%;
  padding: 12px; border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 600;
  background: none; color: var(--soft);
  border: 1.5px solid var(--line-soft);
  cursor: pointer; transition: all 0.2s;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.booking-modal__edit:hover {
  border-color: var(--line); color: var(--text);
}

@media (max-width: 560px) {
  .booking-modal {
    padding: 28px 20px;
    max-height: 90vh;
  }

  .booking-modal__heading {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .booking-modal__confirm {
    min-height: 48px;
  }

  .booking-modal__edit {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ---- Toast Notifications ---- */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--panel);
  border: 1.5px solid var(--line-soft);
  box-shadow: 0 8px 32px rgba(26,26,26,0.15);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  max-width: 380px;
}
.toast.visible { transform: translateX(0); opacity: 1; }
.toast.exiting { transform: translateX(120%); opacity: 0; }

.toast--success { border-color: rgba(26,26,26,0.4); }
.toast--success .toast__icon { color: var(--text); }
.toast--error { border-color: rgba(178,34,34,0.35); }
.toast--error .toast__icon { color: var(--accent); }
.toast--warning { border-color: rgba(212,160,23,0.35); }
.toast--warning .toast__icon { color: var(--yellow); }
.toast--info { border-color: var(--line-soft); }
.toast--info .toast__icon { color: var(--soft); }

.toast__icon { flex-shrink: 0; width: 18px; height: 18px; }
.toast__text { flex: 1; line-height: 1.4; }
.toast__close {
  flex-shrink: 0; background: none; border: none;
  color: var(--soft); cursor: pointer; padding: 2px;
  font-size: 1.1rem; line-height: 1; transition: color 0.2s;
}
.toast__close:hover { color: var(--text); }

@media (max-width: 480px) {
  .toast-container { top: auto; bottom: 24px; right: 12px; left: 12px; }
  .toast { max-width: none; transform: translateY(120%); }
  .toast.visible { transform: translateY(0); }
  .toast.exiting { transform: translateY(120%); }
}
