:root {
  --ink: #2e4455;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #d3e0e8;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

::selection {
  background: #c5d7e3;
  color: var(--ink);
}

section[id] {
  scroll-margin-top: 6.5rem;
}

main > section {
  margin-top: 3rem;
}

@media (min-width: 640px) {
  main > section {
    margin-top: 4.5rem;
  }
}

@media (min-width: 1024px) {
  main > section {
    margin-top: 6.5rem;
  }
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal {
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    filter 0.85s var(--ease);
}

.rise {
  animation: rise 0.95s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.hero-title {
  font-size: clamp(2.35rem, 1.15rem + 4.5vw, 5.15rem);
  line-height: 0.96;
  letter-spacing: -0.048em;
}

.hero-bg {
  background:
    radial-gradient(820px 420px at 50% -8%, rgba(255, 255, 255, 0.92), transparent 62%),
    radial-gradient(640px 380px at 86% 18%, rgba(168, 196, 214, 0.55), transparent 64%),
    radial-gradient(620px 360px at 12% 28%, rgba(196, 216, 228, 0.75), transparent 66%),
    linear-gradient(180deg, #e7f0f5 0%, #f7fafb 58%, #ffffff 100%);
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(46px);
  opacity: 0.75;
}

.blob-a {
  top: -90px;
  left: -70px;
  width: 380px;
  height: 380px;
  background: #c5d8e4;
  animation: drift 18s ease-in-out infinite;
}

.blob-b {
  top: 20px;
  right: -90px;
  width: 340px;
  height: 340px;
  background: #b7cddd;
  animation: drift 20s ease-in-out infinite reverse;
}

@keyframes drift {
  50% {
    transform: translate3d(28px, 20px, 0) scale(1.07);
  }
}

.panel {
  background-color: #f4f8fa;
  background-image: radial-gradient(rgba(46, 68, 85, 0.14) 1.15px, transparent 1.15px);
  background-size: 22px 22px;
}

.btn-dark,
.btn-ghost {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.btn-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.22) 48%, transparent 68%);
  transform: translateX(-130%);
  z-index: 1;
  pointer-events: none;
}

.btn-dark:hover::after {
  transform: translateX(130%);
  transition: transform 0.7s ease;
}

.float {
  animation: float 6.5s ease-in-out infinite;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

.pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.4;
    transform: scale(0.82);
  }
}

.cell {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.35rem 0.4rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), transform 0.45s var(--ease);
}

.m-slot[data-state="free"] {
  background: #fff;
  box-shadow: inset 0 0 0 1px #e1e9ee;
}

.m-slot[data-state="booked"] {
  background: #e5eef3;
}

.cell[data-state="free"] {
  background: #fff;
  color: #7d8e9a;
  box-shadow: inset 0 0 0 1px #e1e9ee;
}

.cell[data-state="booked"] {
  background: #e5eef3;
  color: #2e4455;
}

.cell[data-state="team"] {
  background: #e7f7ee;
  color: #14663c;
}

.cell[data-state="blocked"] {
  background: #f6eee8;
  color: #8a5344;
}

.cell.is-pop {
  animation: pop 0.5s var(--ease);
}

@keyframes pop {
  40% {
    transform: scale(1.06);
  }
}

.mobile-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition: grid-template-rows 0.4s var(--ease), opacity 0.3s ease;
}

.mobile-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
}

.mobile-panel > div {
  overflow: hidden;
}

@media (min-width: 768px) {
  .mobile-panel {
    display: none;
  }
}

.acc-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.chevron {
  flex: none;
  transition: transform 0.35s var(--ease);
}

.acc.is-open .chevron {
  transform: rotate(45deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.acc.is-open .acc-panel {
  grid-template-rows: 1fr;
}

.acc-panel > div {
  overflow: hidden;
}

.nav-bar.is-stuck {
  box-shadow: 0 16px 40px -24px rgba(46, 68, 85, 0.45);
  background: rgba(255, 255, 255, 0.92);
}

.shot-frame {
  position: relative;
  aspect-ratio: 1024 / 640;
}

.shot-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.shot-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.shot-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #d5e0e7;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

.shot-dot.is-active {
  width: 1.45rem;
  background: var(--ink);
}

.price-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.price-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ink) var(--fill, 9%), #e1e9ee var(--fill, 9%));
}

.price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px -10px rgba(46, 68, 85, 0.85);
}

.price-range::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #e1e9ee;
}

.price-range::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--ink);
}

.price-range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px -10px rgba(46, 68, 85, 0.85);
}

.bill-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.bill-option.is-on {
  background: var(--ink);
  color: #fff;
}

.bill-save {
  border-radius: 999px;
  background: #e7f3ee;
  padding: 0.12rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1f6b45;
}

.bill-option.is-on .bill-save {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.tier-card {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 2px solid #e1e9ee;
  border-radius: 24px;
  background: #fff;
  padding: 1.25rem 1.35rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.tier-card.is-active {
  border-color: var(--ink);
  box-shadow: 0 24px 60px -32px rgba(46, 68, 85, 0.45);
}

.tier-badge {
  display: inline-flex;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: #e7f3ee;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f6b45;
}

.tier-badge[hidden] {
  display: none;
}

@media (min-width: 768px) {
  h1, h2, h3, p, li {
    hyphens: none;
  }
}

.cookie-banner {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.75rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 1rem 1rem 1rem 1.25rem;
  border: 1px solid #e1e9ee;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px -28px rgba(46, 68, 85, 0.55);
  animation: cookie-in 0.55s var(--ease) both;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.35rem;
}

.cookie-banner__accept {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  padding: 0.8rem 1.25rem;
  color: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 24px 60px -32px rgba(46, 68, 85, 0.45);
  transition: transform 0.3s var(--ease);
}

.cookie-banner__accept:hover {
  transform: translateY(-2px);
}

.cookie-banner__decline {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0.8rem 0.85rem;
  color: #5d7180;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-banner__decline:hover {
  color: var(--ink);
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 639px) {
  .cookie-banner__card {
    flex-direction: column;
    align-items: stretch;
    gap: 0.9rem;
    padding: 1.05rem 1rem 0.9rem;
    border-radius: 24px;
  }

  .cookie-banner__actions {
    display: grid;
  }

  .cookie-banner__accept {
    width: 100%;
  }

  .cookie-banner__decline {
    order: 1;
    padding-bottom: 0.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal,
  .rise,
  .float,
  .blob,
  .pulse,
  .cookie-banner__card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
