/* flawed human. — client pages (booking, manage). Served at /fh/fh.css by fh_overlay.go.
   Ported from the approved design (design/README.md). Fonts are self-hosted: the public
   CSP is default-src 'self', so nothing may come from a CDN. */

@font-face { font-family: Barlow; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fh/fonts/barlow-400-latin.woff2") format("woff2"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fh/fonts/barlow-700-latin.woff2") format("woff2"); }
@font-face { font-family: Quicksand; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fh/fonts/quicksand-400-latin.woff2") format("woff2"); }
@font-face { font-family: Quicksand; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fh/fonts/quicksand-700-latin.woff2") format("woff2"); }
:root {
  --ink: #111111;
  --purple: #5B1FE0;
  --purple-dark: #4215ab;
  --hover: rgba(163, 177, 247, .4);
  --lime: #B6F97B;
  --lilac: #EBD3FF;
  --error: #a82047;
  --error-line: #b52353;
  --muted-line: #d9d0eb;
  --gradient-text: linear-gradient(90deg, #6b1fe8, #3867d6);
}

* { box-sizing: border-box; }
/* The approved Canva render ran with Tailwind's preflight reset; these lines reproduce what it changed
   (line height, heading size/margins, paragraph margins, button padding) so the page looks the same. */
html { line-height: 1.5; scroll-behavior: smooth; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: inherit; }
button { padding: 0; line-height: inherit; }
body { margin: 0; width: 100%; min-width: 320px; color: var(--ink); font-family: Barlow, sans-serif; background: #fff; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
[hidden] { display: none !important; }

.shell { width: 100%; max-width: 1180px; margin: auto; padding: 28px clamp(20px, 5vw, 72px) 42px; }

/* ------------------------------------------------------------ header / hero */
.top { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--purple); padding-bottom: 22px; }
.brand { font-size: clamp(19px, 2.5vw, 25px); white-space: nowrap; letter-spacing: -.06em; color: var(--ink); text-decoration: none; }
.brand s { text-decoration-thickness: 1.5px; text-decoration-color: var(--purple); }
.brand strong { font-weight: 700; }
.top-note, .eyebrow, .tz-note, .footer-note { font-size: 11px; letter-spacing: .035em; }
.top-note { text-align: right; color: var(--purple); }

.hero { padding: clamp(38px, 6vw, 78px) 0 36px; max-width: 1080px; }
.hero-word { font-size: 110px; letter-spacing: -5px; color: var(--purple); font-weight: 700; margin: 0 0 19px; }
.intro { max-width: 530px; font-family: Quicksand, sans-serif; font-size: 17px; line-height: 1.7; margin: 0; white-space: pre-line; transform: translateY(-8px); }
.rule { height: 1px; background: linear-gradient(90deg, var(--purple) 0%, var(--purple) 75%, var(--lime) 93%, #DAF57A 100%); }

.eyebrow { color: var(--purple); letter-spacing: .26em; font-weight: 700; margin: 0 0 19px; }
h2 { font-weight: 400; letter-spacing: -.055em; line-height: 1.18; }
h2 strong { font-weight: 700; }

/* ------------------------------------------------------------ step 1: date & time */
.step { padding-top: 34px; }
.booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, .85fr); gap: clamp(26px, 5vw, 78px); padding-top: 13px; }
.month-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.month-title { font-size: 18px; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--purple); border-radius: 10px; background: #fff; color: var(--purple); font-size: 24px; line-height: 1; transition: background .18s; }
.icon-btn:not(:disabled):hover, .day:not(:disabled):hover, .slot:not(:disabled):hover { background: var(--hover); }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.weekdays { margin-bottom: 9px; }
.weekdays span { text-align: center; font-weight: 700; font-size: 10px; line-height: normal; color: var(--purple); }
.day { position: relative; min-width: 0; aspect-ratio: 1.08; border: 1px solid var(--purple); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; transition: background .18s, color .18s; }
.day.blank { visibility: hidden; pointer-events: none; }
.day.today::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); bottom: 5px; left: calc(50% - 2.5px); }
.day.selected, .slot.selected,
.day.selected:not(:disabled):hover, .slot.selected:not(:disabled):hover { background: var(--purple); color: #fff; }
.day:disabled { border-color: var(--muted-line); color: #aaa; }
.days.loading .day { opacity: .5; }

.times-heading { font-size: 19px; font-weight: 400; margin: 0 0 15px; }
.tz-note { display: block; line-height: 1.6; color: var(--purple); margin-bottom: 7px; }
.tz-select { width: 100%; border: 0; border-bottom: 1px solid var(--purple); border-radius: 0; background: #fff; color: var(--ink); padding: 7px 20px 10px 0; margin-bottom: 20px; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.slot { min-height: 44px; border: 1px solid var(--purple); border-radius: 10px; background: #fff; color: var(--ink); font-size: 12px; transition: background .18s, color .18s; }
.message { font-size: 13px; line-height: 1.6; margin: 12px 0; color: var(--purple); }
.message.error { color: var(--error); }

.empty { position: relative; min-height: 130px; border: 1px solid var(--purple); border-radius: 10px; padding: 25px 38px 20px 20px; overflow: hidden; }
.empty p { position: relative; z-index: 1; max-width: 230px; line-height: 1.5; margin: 0; }
.philosopher-mark { position: absolute; width: 150px; height: auto; right: 8px; bottom: -2px; opacity: .78; pointer-events: none; }
.empty .mark { position: absolute; color: var(--lime); font-weight: 700; font-size: 28px; line-height: normal; }
.empty .mark.one { right: 27px; top: 13px; transform: rotate(19deg); }
.empty .mark.two { right: 56px; bottom: 8px; transform: rotate(-22deg); }

/* ------------------------------------------------------------ buttons */
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.primary, .secondary, .download { border: 1px solid var(--purple); border-radius: 10px; min-height: 48px; padding: 11px 21px; font-weight: 700; transition: background .18s, color .18s; }
.primary { background: var(--purple); color: #fff; }
.primary:hover:not(:disabled) { background: var(--purple-dark); }
.secondary { background: #fff; color: var(--purple); }
.secondary:hover { background: var(--hover); }

/* ------------------------------------------------------------ step 2: form */
#step-two > .eyebrow { margin-top: 32px; }
#booking-form { margin-top: 22px; }
.summary { display: block; font-size: 12px; line-height: 1.7; color: var(--purple); margin: 6px 0 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 32px; max-width: 730px; }
.field.wide { grid-column: 1 / -1; }
.field > label, .field > .field-label, .field legend { display: block; font-size: 18px; font-weight: 700; color: var(--purple); margin-bottom: 7px; padding: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=url],
.field input[type=number], .field textarea, .field select {
  display: block; width: 100%; border: 0; border-bottom: 1px solid var(--purple); border-radius: 0;
  background: transparent; color: var(--ink); padding: 9px 1px 12px; outline-offset: 4px;
}
.field textarea { resize: vertical; min-height: 67px; }
/* as specific as the underline rules above (element + attribute), so the red wins on every control */
.field input[aria-invalid=true], .field textarea[aria-invalid=true], .field select[aria-invalid=true] { border-bottom-color: var(--error-line); }
.field-hint { font-size: 12px; color: var(--purple); margin: 4px 0 0; opacity: .8; }
.phone-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 18px; align-items: end; }
.field .phone-row select { padding-right: 4px; text-overflow: ellipsis; }
.field-error { color: var(--error); font-size: 12px; min-height: 17px; margin: 4px 0 0; }
.options { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; }
.option { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.option input { width: 18px; height: 18px; accent-color: var(--purple); margin: 0; }

/* "how should we meet?" */
.meeting-options { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 20px; margin-top: 2px; }
.meeting-options.single { grid-template-columns: minmax(0, 1fr); }
.meeting-heading { grid-column: 1 / -1; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.03em; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.location-field { position: relative; width: calc(100% - 28px); padding-bottom: 21px; }
.meeting-options.single .location-field { width: 100%; }
.location-field label { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0 0 7px; font-size: 12px; font-weight: 700; white-space: nowrap; color: #6b1fe8; }
.location-field input { display: block; width: 100%; border: 0; border-bottom: 2px dashed transparent; border-image: linear-gradient(90deg, #6b1fe8, #3867d6) 1; background: transparent; color: var(--ink); padding: 4px 0 8px; }
.meet-choice { display: flex; align-items: center; gap: 10px; margin: 0; padding-bottom: 21px; color: var(--purple); font-size: 14px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.checkbox-wrap { position: relative; flex: 0 0 30px; width: 30px; height: 30px; display: block; }
.meet-choice input { appearance: none; -webkit-appearance: none; width: 30px; height: 30px; margin: 0; border: 1px solid #9b5cff; border-radius: 2px; padding: 0; background: #fff; display: block; cursor: pointer; }
.meet-choice .checkbox-mark { display: none; position: absolute; inset: 0; place-items: center; color: var(--purple); font-size: 16px; font-weight: 700; line-height: 1; pointer-events: none; }
.meet-choice input:checked + .checkbox-mark { display: grid; }
.meet-choice .video-icon { display: grid; place-items: center; width: 26px; height: 26px; min-width: 26px; border-radius: 50%; background: #5b3ab8; color: #fff; }
.meet-choice .video-icon svg { width: 15px; height: 15px; }
.meeting-options .field-error { grid-column: 1 / -1; margin-top: -14px; }
.meeting-options.toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; }
.meeting-options.toggles .meeting-heading, .meeting-options.toggles .field-error { flex: 0 0 100%; }
.meeting-options.toggles .meet-choice { padding-bottom: 4px; }
.meeting-options.toggles .field-error { margin-top: -6px; }

/* ------------------------------------------------------------ step 3: confirmation */
.confirm { position: relative; isolation: isolate; overflow: hidden; min-height: 400px; border-radius: 12px; background: #fff; color: #2B1A4A; padding: clamp(30px, 6vw, 76px); margin-top: 22px; }
.confirm h2 { font-size: clamp(31px, 4.2vw, 51px); max-width: 630px; color: #000; }
.confirm-copy { max-width: 500px; line-height: 1.65; }
.confirmed-date { font-weight: 700; font-size: clamp(15px, 2vw, 21px); line-height: 1.65; color: var(--purple); margin: 28px 0; }
.download { display: inline-block; background: transparent; color: var(--purple); text-decoration: none; }
.download:hover { background: rgba(91, 31, 224, .10); }

/* ------------------------------------------------------------ manage page (/manage/<token>) */
.manage { min-height: 0; }
.manage .confirmed-date { margin: 24px 0 18px; }
.details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 22px; margin: 0 0 8px; max-width: 640px; }
.details dt { color: var(--purple); font-size: 11px; font-weight: 700; letter-spacing: .26em; line-height: 24px; }
.details dd { margin: 0; line-height: 24px; overflow-wrap: anywhere; }
.details a { color: var(--purple); }
a.primary, a.secondary { display: inline-flex; align-items: center; text-decoration: none; }
.cancel-form { max-width: 560px; margin-top: 30px; }
.cancel-form .meeting-heading { margin-bottom: 18px; }
.cancel-form .field > label { font-size: 15px; }
.cancel-form .actions { margin-top: 18px; }
#mode-notice:empty { display: none; }
#mode-notice { margin: 22px 0 0; font-size: 15px; font-weight: 700; }
/* reschedule: the moment being moved */
.day.current { outline: 2px dashed var(--lime); outline-offset: -6px; }
.slot.current, .slot.current:disabled { border-style: dashed; opacity: .7; }

footer { border-top: 1px solid var(--purple); margin-top: 62px; padding-top: 20px; color: var(--purple); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 680px) {
  .booking-grid { grid-template-columns: 1fr; }
  .top-note { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .shell { padding-inline: 20px; }
  .hero { padding-top: 46px; }
  .meeting-options { grid-template-columns: 1fr; }
  .location-field { width: 100%; }
  .details { grid-template-columns: 1fr; gap: 0; }
  .details dd { margin-bottom: 10px; }
}
@media (max-width: 370px) {
  .weekdays, .days { gap: 3px; }
  .day { font-size: 12px; }
  .slots { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ------------------------------------------------------------ calnode overlay additions */
.form-grid-contents { display: contents; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.meet-choice.unavailable { opacity: .45; cursor: not-allowed; }
.meet-choice.unavailable input { cursor: not-allowed; }
.meet-note { font-size: 11px; font-weight: 400; letter-spacing: .02em; }
.meeting-where { flex: 0 0 100%; margin: 0; font-size: 14px; color: var(--ink); }
.confirm-where { margin: -14px 0 28px; line-height: 1.6; }
.icon-btn:disabled { border-color: var(--muted-line); color: #aaa; }

.fh-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 12px; }
.footer-links a, .cookie-link { color: var(--purple); text-decoration: none; background: none; border: 0; font-size: 12px; }
.footer-links a:hover, .cookie-link:hover { text-decoration: underline; }
.lang-switch { display: inline-flex; gap: 10px; }
.lang-switch a[aria-current] { font-weight: 700; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.manage-hint { margin: 14px 0 0; max-width: 560px; }
#reschedule-now { margin-bottom: 4px; }
