/* ==========================================================================
   Light Laser Aesthetics — custom styles
   Tailwind (CDN) handles layout utilities; this file holds brand tokens and
   the few components Tailwind can't express cleanly.
   ========================================================================== */

:root {
  --ink: #030155;        /* brand indigo — text and dark sections */
  --ink-600: #3d3b7c;
  --ink-400: #6d6c99;
  --magenta: #d70081;    /* brand magenta — actions */
  --magenta-deep: #a80065;
  --magenta-soft: #fde8f3;
  --gold: #c1862b;       /* brand gold — logo dot motif, accents */
  --gold-deep: #8e6219;  /* gold for small text: 5:1 contrast on white */
  --gold-soft: #f6ead6;
  --mist: #f5f4fa;
  --line: #e3e1ee;
  --ok: #2f6b57;
  --warn: #9a5b00;
  --danger: #b42318;
}

[x-cloak] { display: none !important; }

/* No smooth auto-scrolling: pages never glide by themselves. */
html { scroll-padding-top: 1.5rem; }
body {
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.font-display { font-family: 'Marcellus', Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: 0.005em; }

/* Visible keyboard focus everywhere */
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 6px; }

/* --------------------------------------------------------------------------
   The pulse trail — gold dots growing in size, taken from the logo.
   Used for assessment progress and package session tracking.
   -------------------------------------------------------------------------- */
.pulse-trail { display: flex; align-items: center; gap: 0.45rem; }
.pulse-dot {
  border-radius: 999px;
  background: transparent;
  border: 2px solid var(--gold);
  flex: none;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.pulse-dot.is-on { background: var(--gold); }
.pulse-dot.is-current { transform: scale(1.15); box-shadow: 0 0 0 4px rgba(193, 134, 43, 0.18); }

/* Hero arc of dots behind the headline */
.hero-arc { position: absolute; pointer-events: none; }
.hero-arc span { position: absolute; border-radius: 999px; background: var(--gold); }

/* --------------------------------------------------------------------------
   Choice tiles (assessment) and segmented yes/no (screening)
   -------------------------------------------------------------------------- */
.choice-tile {
  border: 1.5px solid var(--line);
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice-tile:hover { border-color: var(--ink-400); }
.choice-tile[aria-pressed="true"] { border-color: var(--magenta); background: var(--magenta-soft); }

.yesno { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.yesno label { cursor: pointer; }
.yesno input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.yesno span { display: block; padding: 0.4rem 1rem; font-weight: 600; font-size: 0.875rem; }
.yesno input:focus-visible + span { outline: 3px solid var(--magenta); outline-offset: -3px; }
.yesno input[value="no"]:checked + span { background: var(--ink); color: #fff; }
.yesno input[value="yes"]:checked + span { background: var(--magenta); color: #fff; }

/* Date strip in the booking wizard */
.date-strip { display: flex; gap: 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
.date-strip::-webkit-scrollbar { height: 6px; }
.date-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.date-strip > * { scroll-snap-align: start; }

/* --------------------------------------------------------------------------
   Before / after comparison slider
   A transparent range input covers the frame: dragging, tapping and arrow
   keys all work natively, and screen readers announce the position.
   -------------------------------------------------------------------------- */
.compare { position: relative; overflow: hidden; border-radius: 14px; background: #0f172a; user-select: none; touch-action: pan-y; }
.compare img { display: block; width: 100%; height: 100%; object-fit: cover; }
.compare .compare-before { position: absolute; inset: 0; }
.compare .compare-handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: #fff;
  transform: translateX(-1px); pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.compare .compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px;
  transform: translate(-50%, -50%); border-radius: 999px; background: #fff;
  border: 3px solid var(--gold);
}
.compare .compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare .compare-range:focus-visible ~ .compare-handle::after { box-shadow: 0 0 0 4px rgba(193, 134, 43, 0.5); }
.compare .compare-label {
  position: absolute; top: 12px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; background: rgba(3, 1, 85, 0.8); color: #fff; pointer-events: none;
}

/* --------------------------------------------------------------------------
   Status badges (dashboard)
   -------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.status-pending   { background: #fff4de; color: var(--warn); }
.status-confirmed { background: #e6eefc; color: #1d4ed8; }
.status-completed { background: #e3f1ea; color: var(--ok); }
.status-cancelled { background: #f1f2f5; color: var(--ink-400); text-decoration: line-through; }
.status-noshow    { background: #fdecec; color: var(--danger); }

/* Form controls shared by public site and dashboard */
.field {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  padding: 0.65rem 0.85rem; font-size: 1rem; color: var(--ink);
}
.field:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(215, 0, 129, 0.15); }
.field[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; }

/* Toasts */
.toast-enter { animation: toast-in 0.2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* FAQ disclosure marker */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  header, footer, nav, .no-print { display: none !important; }
}

/* --------------------------------------------------------------------------
   Skin depth explorer
   -------------------------------------------------------------------------- */
.layer-band { border-top: 1px solid rgba(3, 1, 85, 0.08); }
.layer-band:first-child { border-top: 0; }
.layer-band.is-dim { opacity: 0.4; }
.layer-band.is-active { opacity: 1; }
.layer-marker {
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--magenta);
}

/* Long-form guide text */
.prose-guide p { line-height: 1.75; }
.prose-guide li { line-height: 1.6; }
.tick-list li { position: relative; padding-left: 1.6rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 0.6rem; height: 0.6rem;
  border-radius: 999px; background: var(--gold);
}
.cross-list li { position: relative; padding-left: 1.6rem; }
.cross-list li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.5rem; height: 0.5rem;
  border-radius: 999px; border: 2px solid var(--magenta);
}
