/* ==========================================================================
   kildarishq.com: A Day Passes, in the shared dark Kildaris system
   (system.css + lander.css). The sky is a set of soft glows over the live
   field that change with the hour (body[data-phase] from site.js); the sun
   travels behind the glass console. Also the day timeline and the booking
   pop-up.
   ========================================================================== */

:root {
  --accent-a: #7dd3fc;
  --accent-b: #5eead4;
  --accent-c: #a78bfa;
  --ice: #7dd3fc;
  --teal: #5eead4;
  --vi: #a78bfa;
  --orb: radial-gradient(circle at 40% 36%, #ffffff, #bae6fd 30%, #7dd3fc 55%, #a78bfa);
}

/* --- hero sky ----------------------------------------------------------------- */

.hq-hero { position: relative; overflow: hidden; isolation: isolate; }
.hq-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sky { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.sky-day {
  background:
    radial-gradient(90rem 40rem at 50% -10%, rgba(125, 211, 252, 0.2), transparent 65%),
    radial-gradient(60rem 30rem at 50% 100%, rgba(94, 234, 212, 0.08), transparent 70%);
}
.sky-dusk {
  background:
    radial-gradient(80rem 40rem at 50% 110%, rgba(240, 171, 252, 0.16), transparent 65%),
    radial-gradient(70rem 36rem at 50% -10%, rgba(167, 139, 250, 0.2), transparent 65%);
}
.sky-night { background: radial-gradient(70rem 40rem at 85% 0%, rgba(167, 139, 250, 0.1), transparent 70%); }
body[data-phase="day"] .sky-day,
body[data-phase="dusk"] .sky-dusk,
body[data-phase="night"] .sky-night { opacity: 1; }

.hq-stars { position: absolute; inset: 0 0 35% 0; opacity: 0.25; transition: opacity 1s var(--ease); }
body[data-phase="night"] .hq-stars { opacity: 1; }
.hq-stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #eceef5;
  animation: hq-twinkle 3s ease-in-out infinite;
}
@keyframes hq-twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }

.hq-sun {
  --s: clamp(90px, 11vw, 170px);
  position: absolute; width: var(--s); height: var(--s);
  left: calc(var(--sx, 0.5) * 100% - var(--s) / 2);
  top: calc(var(--sy, 0.7) * 100% - var(--s) / 2);
  transition: left 0.6s cubic-bezier(.3, .7, .2, 1), top 0.6s cubic-bezier(.3, .7, .2, 1), filter 0.8s ease, transform 0.8s ease;
}
.hq-sun span, .hq-sun b { position: absolute; border-radius: 50%; }
.hq-sun span { inset: -22px; border: 1.5px solid rgba(125, 211, 252, 0.6); animation: hq-ring 3.4s ease-out infinite; }
.hq-sun span + span { border: 1px solid rgba(167, 139, 250, 0.55); animation-delay: -1.7s; }
.hq-sun b { inset: 0; background: var(--orb); box-shadow: 0 0 90px rgba(125, 211, 252, 0.7), 0 0 200px rgba(167, 139, 250, 0.4); transition: box-shadow 0.8s ease; }
body[data-phase="night"] .hq-sun { filter: saturate(0.35) brightness(0.7); transform: scale(0.45); }
body[data-phase="night"] .hq-sun b { box-shadow: 0 0 60px rgba(167, 139, 250, 0.5); }
body[data-phase="dusk"] .hq-sun b { box-shadow: 0 0 90px rgba(240, 171, 252, 0.6), 0 0 200px rgba(125, 211, 252, 0.4); }
@keyframes hq-ring { 0% { transform: scale(0.7); opacity: 0; } 30% { opacity: 0.8; } 100% { transform: scale(1.9); opacity: 0; } }

/* --- console: the hour card above the dial ------------------------------------ */

.hq-console { max-width: 1060px; display: flex; flex-direction: column; gap: 18px; }
.hq-side { position: relative; display: flex; flex-direction: column; gap: 12px; }
.hq-card {
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3vw, 32px);
  border-radius: 22px;
  background: rgba(5, 6, 10, 0.45);
  border: 1px solid var(--edge);
}
.hq-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hq-clock {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.4rem); letter-spacing: -0.035em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(100deg, #fff, var(--ice) 60%, var(--vi));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-block: 0.2em; margin-block: -0.2em;
}
.hq-tag { font-size: 0.82rem; color: var(--teal); padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(94, 234, 212, 0.3); background: rgba(94, 234, 212, 0.06); }
.hq-event { margin-top: 14px; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); line-height: 1.15; letter-spacing: -0.02em; max-width: none; }
.hq-detail { margin-top: 8px; font-size: 0.98rem; line-height: 1.55; color: var(--ink-2); font-weight: 300; max-width: 64ch; }
.hq-card.flip .hq-event, .hq-card.flip .hq-detail { animation: hq-in 0.45s var(--ease-out) both; }
@keyframes hq-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.hq-toast {
  display: flex; gap: 14px; padding: 14px 18px; border-radius: 16px;
  background: rgba(167, 139, 250, 0.08); border: 1px solid rgba(167, 139, 250, 0.3);
  animation: hq-slide 0.4s ease-out both;
}
.hq-toast[hidden] { display: none; }
.hq-toast span, .hq-booked span { flex: none; width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 12px var(--ice); }
.hq-toast p { font-size: 0.94rem; line-height: 1.5; color: var(--ink-2); max-width: none; }
@keyframes hq-slide { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

.hq-dial { display: grid; grid-template-columns: 1fr auto; gap: 10px 22px; align-items: end; padding: 4px 6px 0; }
.hq-dial-row { grid-column: 1; display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-3); }
.hq-dial-mid { color: var(--ink-2); }
.hq-track { grid-column: 1; position: relative; height: 36px; display: flex; align-items: center; }
.hq-track input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0;
  background: transparent; position: relative; z-index: 2; cursor: pointer; touch-action: pan-y;
}
.hq-track input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(167, 139, 250, 0.35), rgba(125, 211, 252, 0.5) 50%, rgba(167, 139, 250, 0.35)); }
.hq-track input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(125, 211, 252, 0.4); }
.hq-track input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -13px; border-radius: 50%;
  background: var(--orb); border: 3px solid #05060a; box-shadow: 0 0 0 1px rgba(186, 230, 253, 0.6), 0 0 24px rgba(125, 211, 252, 0.7);
}
.hq-track input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ice); border: 3px solid #05060a; }
.hq-ticks { position: absolute; left: 15px; right: 15px; top: 0; bottom: 0; z-index: 3; pointer-events: none; }
.hq-tick {
  position: absolute; left: calc(var(--at) * 100%); top: -10px; width: 22px; height: 16px;
  transform: translateX(-50%); border: 0; padding: 0; background: transparent; cursor: pointer; pointer-events: auto;
}
.hq-tick::after {
  content: ""; position: absolute; left: 50%; top: 5px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--ink-3); transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s;
}
.hq-tick:hover::after, .hq-tick.on::after { background: var(--ice); transform: scale(1.6); box-shadow: 0 0 10px var(--ice); }
.hq-play {
  grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--edge-2); background: rgba(236, 238, 245, 0.04); color: var(--ink);
  font: 400 0.9rem var(--sans);
  transition: border-color 0.2s, background 0.2s;
}
.hq-play:hover { border-color: rgba(125, 211, 252, 0.6); background: rgba(125, 211, 252, 0.06); }
.hq-play-i { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.hq-play[aria-pressed="true"] .hq-play-i { width: 10px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hq-base {
  display: flex; flex-wrap: wrap; gap: 8px 2rem; justify-content: space-between; align-items: center;
  padding: 14px 6px 2px; border-top: 1px solid var(--edge);
}
.hq-base strong { font-weight: 500; font-size: 0.98rem; }
.hq-base span { font-size: 0.8rem; color: var(--ink-3); }

/* --- the day timeline ------------------------------------------------------------ */

.hq-tl { list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 12px; }
.hq-tl::before {
  content: ""; position: absolute; left: 92px; top: 24px; bottom: 24px; width: 1px;
  background: linear-gradient(180deg, var(--vi), var(--ice) 40%, var(--teal) 70%, var(--vi));
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.5);
  opacity: 0.6;
}
.hq-tl-i { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 0 28px; align-items: start; }
.hq-tl-i::before {
  content: ""; position: absolute; left: 87px; top: 22px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--orb); box-shadow: 0 0 0 5px var(--bg), 0 0 16px rgba(125, 211, 252, 0.7);
}
.hq-tl-t { font-size: 0.88rem; padding-top: 16px; color: var(--ink-2); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.hq-tl-b { padding: 16px 22px 18px; border-radius: 18px; display: flex; flex-direction: column; gap: 4px; }
.hq-tl-b .card-k { color: var(--teal); }
.hq-tl-b h3 { font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.15; }
.hq-tl-b p { color: var(--ink-2); font-size: 0.94rem; font-weight: 300; line-height: 1.55; }
@media (max-width: 620px) {
  .hq-tl::before { left: 6px; }
  .hq-tl-i { grid-template-columns: 1fr; padding-left: 28px; }
  .hq-tl-i::before { left: 1px; top: 6px; }
  .hq-tl-t { text-align: left; padding: 0 0 6px; }
}

/* --- AI, pricing ------------------------------------------------------------------ */

.hq-plat { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hq-plat li { font-size: 0.84rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--edge-2); color: var(--ink); background: rgba(236, 238, 245, 0.03); }

.hq-price {
  max-width: 620px; margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 30px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem;
  background: linear-gradient(170deg, rgba(125, 211, 252, 0.12), rgba(12, 14, 22, 0.55) 60%);
  border-color: rgba(125, 211, 252, 0.3);
}
.hq-price-v {
  display: block; margin-top: 6px;
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(4rem, 2.4rem + 6vw, 7.4rem); letter-spacing: -0.05em; line-height: 0.95;
}
.hq-price-v small { font-family: var(--sans); font-size: 1rem; letter-spacing: 0; color: var(--ink-3); font-weight: 400; margin-inline: 0.4em; }
.hq-price-v small:first-child { margin-left: 0; }
.hq-price ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: flex; flex-direction: column; gap: 10px; }
.hq-price li { position: relative; padding-left: 22px; color: var(--ink-2); text-align: left; }
.hq-price li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 10px; border-radius: 50%; background: var(--orb); }

/* --- booking pop-up ------------------------------------------------------------------ */

.hq-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.hq-modal[hidden] { display: none; }
.hq-modal-back { position: absolute; inset: 0; background: rgba(3, 4, 7, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity 0.3s ease; }
@starting-style { .hq-modal-back { opacity: 0; } }
.hq-modal-box {
  position: relative; width: min(1000px, 100%); max-height: calc(100svh - 40px); overflow: auto;
  display: grid; grid-template-columns: 340px 1fr; border-radius: 28px;
  background: var(--glass); border: 1px solid var(--edge-2);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.7), 0 0 90px -30px rgba(125, 211, 252, 0.4);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  transition: transform 0.52s var(--ease-out), opacity 0.4s var(--ease);
}
/* Entrance without a keyframe animation: browsers that know @starting-style
   ease it in; the rest simply show it. Either way it can never stay hidden. */
@starting-style {
  .hq-modal-box { opacity: 0; transform: translateY(18px) scale(0.97); }
}
.hq-modal-side {
  padding: 40px 34px; display: flex; flex-direction: column;
  background: radial-gradient(360px 300px at 40% 20%, rgba(125, 211, 252, 0.22), transparent 70%),
              radial-gradient(300px 300px at 80% 90%, rgba(167, 139, 250, 0.22), transparent 70%), rgba(5, 6, 10, 0.5);
  border-right: 1px solid var(--edge);
}
.hq-logo { position: relative; display: block; width: 24px; height: 24px; flex: none; }
.hq-logo i, .hq-logo b { position: absolute; border-radius: 50%; }
.hq-logo i:first-child { inset: 0; border: 1px solid rgba(167, 139, 250, 0.6); }
.hq-logo i + i { inset: 4px; border: 1.5px solid rgba(125, 211, 252, 0.75); }
.hq-logo b { inset: 8.5px; background: var(--orb); }
.hq-logo.big { width: 56px; height: 56px; }
.hq-logo.big i + i { inset: 9px; }
.hq-logo.big b { inset: 19px; box-shadow: 0 0 24px rgba(125, 211, 252, 0.8); }
.hq-modal-side h2 { margin-top: 26px; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.7rem); line-height: 1.02; }
.hq-modal-side p { margin-top: 16px; font-size: 0.95rem; line-height: 1.6; color: var(--ink-2); font-weight: 300; }
.hq-modal-side ul { list-style: none; padding: 0; margin: auto 0 0; padding-top: 28px; display: flex; flex-direction: column; gap: 12px; font-size: 0.9rem; color: var(--ink-2); }
.hq-modal-side li { position: relative; padding-left: 20px; }
.hq-modal-side li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.hq-modal-side li.v::before { background: var(--vi); box-shadow: 0 0 8px var(--vi); }
.hq-modal-side .hq-live { margin-top: 26px; align-self: flex-start; white-space: nowrap; }
.hq-modal-side p.hq-or { margin-top: 10px; font-size: 0.82rem; }

.hq-modal-main.lf { margin: 0; padding: 36px 40px 30px; gap: 0; }
.hq-fs { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.hq-fs legend { padding: 0; margin-bottom: 12px; font-size: 0.82rem; color: var(--ice); }
.hq-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.hq-day, .hq-slot {
  font: inherit; cursor: pointer; border-radius: 16px; background: rgba(236, 238, 245, 0.03); color: var(--ink);
  border: 1px solid var(--edge-2); transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s;
}
.hq-day:hover, .hq-slot:hover { border-color: rgba(125, 211, 252, 0.6); }
.hq-day[aria-pressed="true"], .hq-slot[aria-pressed="true"] {
  background: linear-gradient(135deg, #e0f2fe, var(--ice)); color: #05060a; border-color: transparent;
  box-shadow: 0 0 28px -6px rgba(125, 211, 252, 0.8);
}
.hq-day { height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.hq-day small { font-size: 0.72rem; opacity: 0.75; }
.hq-day strong { font-family: var(--display); font-weight: var(--display-weight); font-size: 28px; line-height: 1; }
.hq-slots { display: flex; gap: 10px; }
.hq-slot { flex: 1; min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.hq-slot i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #e0f2fe, var(--ice)); }
.hq-slot i.pm { background: radial-gradient(circle at 40% 38%, #ede9fe, var(--vi)); }
.hq-slot strong { font-weight: 500; }
.hq-slot span { font-size: 0.85rem; opacity: 0.75; }
.hq-modal-main .lf-row { gap: 12px; }
.hq-modal-main .form-msg { margin-bottom: 12px; }
.hq-modal-act { display: flex; gap: 12px; }
.hq-modal-act .lf-btn { flex: 1; flex-wrap: wrap; gap: 0 0.3em; text-align: center; line-height: 1.25; }
.hq-modal-main .lf-note { margin-top: 12px; }
html.hq-lock { overflow: hidden; }

.hq-booked {
  position: fixed; z-index: 210; right: 24px; bottom: 24px; width: min(380px, calc(100vw - 48px));
  display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px;
  background: var(--glass); border: 1px solid rgba(125, 211, 252, 0.35);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: hq-slide 0.4s ease-out both;
}
.hq-booked[hidden] { display: none; }
.hq-booked p { font-size: 0.94rem; line-height: 1.5; }

@media (max-width: 900px) {
  .hq-modal { padding: 0; align-items: end; }
  .hq-modal-box { grid-template-columns: 1fr; max-height: 100svh; border-radius: 26px 26px 0 0; }
  .hq-modal-side { padding: 28px 22px 22px; border-right: 0; border-bottom: 1px solid var(--edge); }
  .hq-modal-side h2 { padding-right: 52px; margin-top: 18px; }
  .hq-modal-side ul { display: none; }
  .hq-modal-side .hq-live { margin-top: 18px; }
  .hq-modal-main.lf { padding: 24px 22px 26px; }
  .hq-days { gap: 6px; }
  .hq-day { height: 68px; }
}
@media (max-width: 620px) {
  .hq-dial { grid-template-columns: 1fr; }
  .hq-play { grid-column: 1; grid-row: auto; justify-self: center; }
  .hq-base { flex-direction: column; align-items: flex-start; }
}
