@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap");

@font-face {
  font-family: "Cal Sans";
  src: url("../assets/fonts/CalSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter App";
  src: url("../assets/fonts/Inter-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eceef2;
  --bg-grad-start: #a29eff;
  --bg-grad-end: #d1fff3;
  --bg-gradient: linear-gradient(to right, var(--bg-grad-start), var(--bg-grad-end));
  --panel: #f7f8fa;
  --panel-inner: #eef0f3;
  --ink: #111827;
  --text: #374151;
  --subtle: #6b7280;
  --muted: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --primary: #111827;
  --primary-hover: #1f2937;
  --radius: 1.5rem;
  --radius-sm: 0.65rem;
  --shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 18px 40px rgba(17, 24, 39, 0.07);
  --font-display: "Cal Sans", "Inter App", system-ui, sans-serif;
  --font-body: "Inter App", system-ui, -apple-system, sans-serif;
  --font-brand: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grid-line: rgba(17, 24, 39, 0.05);
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* iOS overscroll / rubber-band uses the root background */
  background-color: var(--bg-grad-start);
  background-image: var(--bg-gradient);
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100%;
  min-height: 100dvh;
  /* Prevent diagonal transforms from widening the page (iOS off-center cards) */
  overflow-x: clip;
  width: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  background: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

/* Fixed gradient layer — stays visible during iOS bounce/overscroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-grad-start);
  background-image: var(--bg-gradient);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  /* extend beyond viewport so bounce still shows gradient */
  top: -40vh;
  bottom: -40vh;
  height: auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Home: native scroll-snap panels —— */
html:has(body.home) {
  scroll-snap-type: y mandatory;
}

.home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  max-width: none;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px), calc((100% - 1180px) / 2 + 1.25rem));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px), calc((100% - 1180px) / 2 + 1.25rem));
  background: transparent;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  position: relative;
  z-index: 20;
}

.brand {
  text-decoration: none;
  color: var(--ink);
}

.brand-wordmark {
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.brand-wordmark strong {
  font-weight: 700;
}

.footer-brand .brand-wordmark {
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.925rem;
  font-weight: 500;
}

.site-nav a:not(.btn),
.nav-jump {
  text-decoration: none;
  color: var(--subtle);
}

.site-nav a:not(.btn):hover,
.nav-jump:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.925rem;
  border: 1px solid transparent;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.btn-sm {
  min-height: 2.15rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: #f9fafb;
}

.btn-pill {
  width: 100%;
  max-width: 22rem;
  min-height: 3rem;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.btn-pill:hover {
  background: #f9fafb;
}

.btn-pill.dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-pill.dark:hover {
  background: var(--primary-hover);
}

.panels {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: calc(var(--header-h) + 0.35rem);
  padding-bottom: 2.75rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  overflow-x: clip;
}

.panel .slide-card {
  box-sizing: border-box;
  width: min(1120px, 100%);
  max-width: 100%;
  margin-inline: auto;
  flex: 0 1 auto;
  height: min(640px, calc(100svh - var(--header-h) - 3.25rem));
  background: var(--panel);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: clamp(1.25rem, 2.5vw, 1.85rem);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translate3d(28%, 22%, 0) scale(0.94) rotate(2.4deg);
  transition:
    opacity 480ms var(--ease),
    transform 680ms var(--ease);
  will-change: transform, opacity;
}

.panel.is-active .slide-card {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

/* Exit toward top-left — stronger diagonal */
.panel.is-leaving .slide-card {
  opacity: 0;
  transform: translate3d(-32%, -26%, 0) scale(0.92) rotate(-2.6deg);
  transition-duration: 420ms, 640ms;
}

/* Enter from bottom-right when becoming active after leave */
.panel.is-active.from-below .slide-card {
  animation: deck-enter-br 680ms var(--ease) both;
}

.panel.is-active.from-above .slide-card {
  animation: deck-enter-tl 680ms var(--ease) both;
}

@keyframes deck-enter-br {
  from {
    opacity: 0;
    transform: translate3d(28%, 22%, 0) scale(0.94) rotate(2.4deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
}

@keyframes deck-enter-tl {
  from {
    opacity: 0;
    transform: translate3d(-28%, -22%, 0) scale(0.94) rotate(-2.4deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
}

.slide-split {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
}

.slide-copy {
  padding: 1.5rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.slide-copy.centered {
  align-items: center;
  text-align: center;
  max-width: 34rem;
  margin: 0 auto;
  min-height: 100%;
  padding: 2.5rem 1.5rem;
}

.center-card .slide-copy {
  height: 100%;
}

.brand-mark {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(2rem, 6vw, 3.1rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.brand-mark strong {
  font-weight: 700;
}

.eyebrow-sm {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.slide-copy h1,
.slide-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.slide-copy h1 {
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  max-width: 14ch;
}

.slide-copy h2 {
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  max-width: 16ch;
}

.slide-copy.centered h2 {
  max-width: 18ch;
}

.slide-lead {
  margin: 0;
  color: var(--subtle);
  font-size: 1.02rem;
  max-width: 34ch;
}

.slide-copy.centered .slide-lead {
  max-width: 38ch;
}

.slide-fine {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--subtle);
  line-height: 1.5;
}

.slide-fine a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.slide-panel {
  background: var(--panel-inner);
  border-radius: calc(clamp(1.25rem, 2.5vw, 1.85rem) - 0.55rem);
  margin: 0 0.85rem 0.85rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.slide-panel.soft {
  justify-content: center;
}

.slide-panel.hero-visual {
  padding: 0.75rem;
  justify-content: flex-start;
  align-items: stretch;
  background: var(--panel-inner);
  gap: 0.85rem;
}

.hero-mock {
  width: 100%;
  height: auto;
  max-height: calc(100% - 5.5rem);
  object-fit: contain;
  object-position: center top;
  border-radius: 0.85rem;
  flex: 1 1 auto;
  min-height: 0;
}

.booker-mock {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.9rem;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.booker-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.booker-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #d1d5db, #9ca3af);
  flex: none;
}

.booker-profile strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.booker-profile p {
  margin: 0.15rem 0 0;
  color: var(--subtle);
  font-size: 0.8rem;
}

.booker-grid {
  display: grid;
  gap: 0.75rem;
}

.booker-cal-head {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.55rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.3rem;
}

.cal-grid > span {
  text-align: center;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-grid b {
  display: grid;
  place-items: center;
  min-height: 1.9rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: #fff;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink);
}

.cal-grid b.muted {
  opacity: 0.4;
}

.cal-grid b.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.booker-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.slot-day {
  display: grid;
  gap: 0.3rem;
}

.slot-day em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--subtle);
}

.slot-day b {
  display: grid;
  place-items: center;
  min-height: 1.85rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 500;
}

.slot-day b.picked {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.feature-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.feature-row li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.55rem;
  align-items: start;
}

.feature-row svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ink);
  margin-top: 0.1rem;
}

.feature-row strong {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
}

.feature-row p {
  margin: 0.15rem 0 0;
  color: var(--subtle);
  font-size: 0.78rem;
  line-height: 1.4;
}

.step-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.step-cards li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.step-cards span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.step-cards h3 {
  margin: 0.35rem 0 0.25rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.step-cards p {
  margin: 0;
  color: var(--subtle);
  font-size: 0.9rem;
}

.price-pair {
  display: grid;
  gap: 0.75rem;
}

.price-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.15rem;
}

.price-tile.featured {
  border-color: var(--ink);
}

.price-tile h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.price-amount {
  margin: 0.65rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
}

.price-amount small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--subtle);
  font-weight: 500;
}

.price-desc {
  margin: 0 0 1rem;
  color: var(--subtle);
  font-size: 0.9rem;
}

.deck-dots {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 30;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(8px);
}

.deck-dots a {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.2);
  transition: width 220ms var(--ease), background 220ms var(--ease);
}

.deck-dots a.is-active {
  width: 1.35rem;
  background: var(--ink);
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  scroll-snap-align: start;
}

.footer-brand {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand p,
.footer-copy {
  margin: 0;
  color: var(--subtle);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-copy a {
  color: var(--subtle);
}

/* Legal pages (shared) */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.legal-card h1 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.legal-card .lead {
  margin: 0.6rem 0 1.5rem;
  color: var(--subtle);
}

.legal-card h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  color: var(--ink);
}

.legal-card p,
.legal-card li {
  color: var(--text);
  font-size: 0.95rem;
}

.legal-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.legal-note {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #f9fafb;
  border: 1px solid var(--border);
  color: var(--subtle);
  font-size: 0.875rem;
}

@media (min-width: 900px) {
  .panel .slide-card {
    height: min(680px, calc(100svh - var(--header-h) - 3rem));
  }

  .slide-split {
    grid-template-columns: 0.92fr 1.08fr;
    grid-template-rows: 1fr;
  }

  .slide-split.reverse {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .slide-split.reverse .slide-copy {
    order: 2;
  }

  .slide-copy {
    padding: 2.25rem 2rem;
  }

  .slide-panel {
    margin: 0.85rem 0.85rem 0.85rem 0;
    border-radius: calc(clamp(1.25rem, 2.5vw, 1.85rem) - 0.55rem) 0
      calc(clamp(1.25rem, 2.5vw, 1.85rem) - 0.55rem) 0;
  }

  .slide-split.reverse .slide-panel {
    margin: 0.85rem 0 0.85rem 0.85rem;
    border-radius: 0 calc(clamp(1.25rem, 2.5vw, 1.85rem) - 0.55rem)
      0 calc(clamp(1.25rem, 2.5vw, 1.85rem) - 0.55rem);
  }

  .booker-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .feature-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }

  .feature-row li {
    grid-template-columns: 1fr;
  }

  .step-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-pair {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1rem 2rem;
  }

  .footer-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  .feature-row {
    display: none;
  }

  .panel .slide-card {
    height: auto;
    min-height: calc(100svh - var(--header-h) - 2.25rem);
  }

  #start .slide-copy {
    padding: 1.15rem 1.15rem 0.65rem;
    gap: 0.55rem;
  }

  #start .slide-lead {
    font-size: 0.95rem;
  }

  #start .btn-pill {
    min-height: 2.75rem;
  }

  .slide-panel.hero-visual {
    margin: 0 0.65rem 0.65rem;
    padding: 0.35rem;
    min-height: 48svh;
    flex: 1 1 auto;
  }

  .hero-mock {
    max-height: none;
    width: 100%;
    height: 100%;
    min-height: 46svh;
    object-fit: contain;
    object-position: center top;
    border-radius: 0.65rem;
  }
}

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

  html:has(body.home) {
    scroll-snap-type: none;
  }

  .panel {
    scroll-snap-align: none;
  }

  .panel .slide-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
