/* ==========================================================
   Booker · SaaS landing styles
   ========================================================== */

:root {
  --ink: #0b0b12;
  --ink2: #15151e;
  --paper: #fafaf7;
  --paper2: #f2f1ed;
  --line: #e7e5e0;
  --line2: #1f1f2c;
  --violet-500: #7c5cff;
  --violet-600: #6e47f2;
  --violet-700: #5b3cd9;
  --lime-400: #d4ff3b;
  --coral: #ff7a59;
}

html,
body {
  background-color: var(--paper);
}
body {
  font-feature-settings: "ss01", "cv11", "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--paper);
}
::-webkit-scrollbar-thumb {
  background: rgba(11, 11, 18, 0.18);
  border-radius: 999px;
  border: 2px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(11, 11, 18, 0.4);
}

/* ============== Background grids ============== */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(11, 11, 18, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 11, 18, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 30%, transparent 80%);
}
.bg-grid-dark {
  background-image:
    linear-gradient(to right, rgba(245, 245, 247, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 245, 247, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 90%);
}

/* ============== Typography utilities ============== */
.h2 {
  font-weight: 500;
  letter-spacing: -0.035em;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.04;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--violet-600);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  height: 1px;
  width: 24px;
  background-color: var(--violet-600);
}
.eyebrow-light {
  color: rgba(245, 245, 245, 0.55);
}
.eyebrow-light::before {
  background-color: rgba(245, 245, 245, 0.4);
}

/* ============== Buttons ============== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--ink);
  color: var(--paper);
  border-radius: 9999px;
  padding: 0.6rem 1.1rem;
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 0.25s ease, transform 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 16px -8px rgba(11, 11, 18, 0.3);
}
.btn-primary:hover {
  background-color: var(--violet-700);
}
.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 14px;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1rem 0.95rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(11, 11, 18, 0.12);
  background-color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn-ghost:hover {
  background-color: white;
  border-color: rgba(11, 11, 18, 0.25);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.4rem 0.35rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(11, 11, 18, 0.1);
  background: linear-gradient(180deg, #ffffff, #f5f3ff);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 6px 12px -6px rgba(11, 11, 18, 0.12);
}
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  background-color: rgba(245, 245, 247, 0.12);
  color: var(--paper);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid rgba(245, 245, 247, 0.18);
  backdrop-filter: blur(4px);
}

/* ============== Nav ============== */
.nav-link {
  position: relative;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover {
  color: var(--ink);
  background-color: rgba(11, 11, 18, 0.04);
}
#nav.scrolled {
  box-shadow: 0 6px 24px -16px rgba(11, 11, 18, 0.18);
}
#mobile-menu.is-open {
  display: flex;
}

/* ============== Reveal ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============== Logo cloud ============== */
.logo-text {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  text-align: center;
  filter: grayscale(100%);
  transition: color 0.3s ease, opacity 0.3s ease;
}
.logo-text:hover {
  color: var(--ink);
}

/* ============== Hero floating cards ============== */
.floating-card {
  background-color: white;
  border: 1px solid rgba(11, 11, 18, 0.08);
  border-radius: 14px;
  padding: 0.7rem 0.95rem;
  box-shadow: 0 18px 40px -20px rgba(11, 11, 18, 0.25);
  animation: floaty 6s ease-in-out infinite alternate;
}
.floating-card:nth-of-type(2) {
  animation-delay: -2s;
}
.floating-card:nth-of-type(3) {
  animation-delay: -4s;
}
@keyframes floaty {
  0% { transform: translateY(0) }
  100% { transform: translateY(-10px) }
}

/* ============== Sidebar items (mock) ============== */
.side-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 12.5px;
  color: rgba(11, 11, 18, 0.6);
  cursor: pointer;
}
.side-item:hover {
  background-color: rgba(11, 11, 18, 0.04);
  color: var(--ink);
}
.side-item.active {
  background-color: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 white inset;
}

/* ============== Chips ============== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background-color: white;
  font-size: 12px;
  color: rgba(11, 11, 18, 0.7);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.chip:hover {
  background-color: var(--paper2);
  color: var(--ink);
}
.chip-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  background-color: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
}
.chip-sm {
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background-color: white;
  font-size: 11px;
  color: rgba(11, 11, 18, 0.65);
}
.chip-sm-active {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ============== Calendar mock ============== */
.cal-hour {
  height: 64px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0.4rem 0.6rem;
  font-size: 11px;
  color: rgba(11, 11, 18, 0.45);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.cal-col {
  display: grid;
  grid-template-rows: repeat(5, 64px);
  border-right: 1px solid var(--line);
}
.cal-cell {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.appt {
  margin: 3px;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  font-size: 11px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}
.appt-time {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}
.appt-name {
  font-weight: 600;
  color: inherit;
  font-size: 12px;
}
.appt-svc {
  font-size: 11px;
  opacity: 0.7;
}
.appt-violet {
  background-color: rgba(124, 92, 255, 0.12);
  border-color: rgba(124, 92, 255, 0.35);
  color: var(--violet-700);
}
.appt-coral {
  background-color: rgba(255, 122, 89, 0.14);
  border-color: rgba(255, 122, 89, 0.4);
  color: #b53d1f;
}
.appt-lime {
  background-color: rgba(212, 255, 59, 0.2);
  border-color: rgba(212, 255, 59, 0.5);
  color: #4d6700;
}
.appt-ink {
  background-color: rgba(11, 11, 18, 0.06);
  border-color: rgba(11, 11, 18, 0.18);
  color: rgba(11, 11, 18, 0.7);
}

/* ============== Pain cards ============== */
.pain {
  background-color: var(--paper);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 170px;
}
.pain span {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.pain p {
  font-size: 0.92rem;
  color: rgba(11, 11, 18, 0.62);
  line-height: 1.55;
}

/* ============== Feature cards (dark bento) ============== */
.feature-card-dark {
  position: relative;
  border-radius: 22px;
  padding: 1.8rem;
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(245, 245, 247, 0.08);
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.feature-card-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(124, 92, 255, 0.18),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.feature-card-dark:hover {
  border-color: rgba(245, 245, 247, 0.2);
  transform: translateY(-2px);
}
.feature-card-dark:hover::before {
  opacity: 1;
}
.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: 10px;
  background-color: rgba(124, 92, 255, 0.18);
  color: #cabbff;
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.feat-title {
  margin-top: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.feat-desc {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: rgba(245, 245, 247, 0.65);
  line-height: 1.55;
  max-width: 460px;
}

/* mini agenda inside feature */
.mini-appt {
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  font-size: 10px;
  text-align: center;
  color: rgba(245, 245, 247, 0.7);
  border: 1px solid;
  line-height: 1.3;
}

/* time pills (booking widget) */
.time-pill {
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 0.35rem 0;
  font-weight: 500;
  background-color: white;
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}
.time-pill:hover {
  border-color: rgba(11, 11, 18, 0.4);
}
.time-pill-active {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* phone */
.phone {
  width: 200px;
  border-radius: 28px;
  background: linear-gradient(180deg, #1a1a26, #0b0b12);
  padding: 9px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(245, 245, 247, 0.05);
}
.phone-screen {
  background-color: white;
  border-radius: 21px;
  padding: 14px;
  min-height: 280px;
  color: var(--ink);
}
.phone-lg {
  width: 230px;
}
.phone-lg .phone-screen {
  min-height: 380px;
}
.phone-tilt-l {
  transform: rotate(-4deg);
}
.phone-tilt-r {
  transform: rotate(4deg) translateY(20px);
}

.tag {
  display: inline-flex;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 9999px;
  background-color: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.tag-soft {
  background-color: rgba(124, 92, 255, 0.14);
  color: var(--violet-700);
}

.kpi {
  border: 1px solid rgba(245, 245, 247, 0.1);
  border-radius: 10px;
  padding: 0.65rem 0.4rem;
  background-color: rgba(245, 245, 247, 0.03);
}
.kpi-soft {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
  background-color: var(--paper);
}
.kpi-num {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.kpi-soft .kpi-num {
  color: var(--ink);
}
.kpi-lbl {
  font-size: 10px;
  color: rgba(245, 245, 247, 0.6);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.kpi-soft .kpi-lbl {
  color: rgba(11, 11, 18, 0.5);
}

.chat-bubble {
  background-color: rgba(245, 245, 247, 0.06);
  border: 1px solid rgba(245, 245, 247, 0.1);
  color: rgba(245, 245, 247, 0.85);
  font-size: 12.5px;
  padding: 0.6rem 0.9rem;
  border-radius: 14px 14px 14px 4px;
  max-width: 85%;
  line-height: 1.45;
}
.chat-bubble-out {
  margin-left: auto;
  background-color: rgba(212, 255, 59, 0.16);
  border-color: rgba(212, 255, 59, 0.3);
  color: var(--paper);
  border-radius: 14px 14px 4px 14px;
}

/* ============== Check item ============== */
.check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(11, 11, 18, 0.78);
}
.check-item i {
  color: var(--violet-600);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: rgba(124, 92, 255, 0.12);
  border-radius: 999px;
  padding: 2px;
}
.check-item-light {
  color: rgba(245, 245, 247, 0.85);
}
.check-item-light i {
  color: #d4ff3b;
  background-color: rgba(212, 255, 59, 0.18);
}
.code-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  background-color: var(--paper2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--violet-700);
}

/* ============== Appointment row (phone) ============== */
.appt-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background-color: white;
}
.appt-row-active {
  background-color: rgba(124, 92, 255, 0.08);
  border-color: rgba(124, 92, 255, 0.3);
}
.appt-row-time {
  font-size: 10px;
  font-weight: 700;
  color: rgba(11, 11, 18, 0.55);
  background-color: var(--paper2);
  border-radius: 6px;
  padding: 4px 6px;
  flex-shrink: 0;
  letter-spacing: 0.08em;
}

/* ============== Industry cards ============== */
.industry-card {
  display: block;
  background-color: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  transition: transform 0.4s ease, border-color 0.4s ease,
    box-shadow 0.4s ease;
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 11, 18, 0.25);
  box-shadow: 0 25px 40px -25px rgba(11, 11, 18, 0.18);
}
.industry-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  width: 36px;
  border-radius: 10px;
  background-color: rgba(124, 92, 255, 0.1);
  color: var(--violet-700);
  margin-bottom: 1rem;
}
.industry-card h3 {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}
.industry-card p {
  font-size: 0.88rem;
  color: rgba(11, 11, 18, 0.6);
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* ============== Steps ============== */
.step {
  background-color: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 32px;
  border-radius: 9999px;
  background-color: var(--ink);
  color: var(--paper);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 14px;
}

/* ============== Comparison table ============== */
.cmp {
  padding: 0.95rem 1.1rem;
  vertical-align: middle;
  font-size: 13.5px;
}
.pill-yes {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background-color: rgba(212, 255, 59, 0.25);
  color: #4d6700;
  letter-spacing: 0.05em;
  border: 1px solid rgba(212, 255, 59, 0.5);
}

/* ============== Bars (chart) ============== */
.bar {
  flex: 1;
  height: 8px;
  background-color: var(--paper2);
  border-radius: 999px;
  overflow: hidden;
  max-width: 220px;
}
.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet-500), var(--violet-700));
  border-radius: 999px;
}
.bar-fill-2 {
  background: linear-gradient(90deg, var(--coral), #c2492b);
}
.bar-fill-3 {
  background: linear-gradient(90deg, var(--lime-400), #88a800);
}

/* ============== Testimonial ============== */
.testimonial {
  background-color: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.testimonial blockquote {
  letter-spacing: -0.01em;
}

/* ============== FAQ ============== */
.faq {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  cursor: pointer;
  transition: color 0.25s ease;
}
.faq-q:hover {
  color: var(--violet-600);
}
.faq-q i {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.faq.open .faq-q i {
  transform: rotate(45deg);
  color: var(--violet-600);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.45s ease;
  color: rgba(11, 11, 18, 0.65);
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq.open .faq-a {
  max-height: 220px;
  padding-bottom: 1.4rem;
}

/* ============== Integrations ============== */
.integration {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background-color: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  font-size: 13px;
  font-weight: 500;
  color: rgba(11, 11, 18, 0.78);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.integration:hover {
  border-color: rgba(11, 11, 18, 0.25);
  transform: translateY(-2px);
}

/* ============== Form ============== */
.form-input {
  width: 100%;
  background-color: white;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border-radius: 0.6rem;
  font-size: 14px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-input::placeholder {
  color: rgba(11, 11, 18, 0.35);
}
.form-input:focus {
  border-color: var(--violet-600);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}
.form-input option {
  background-color: white;
  color: var(--ink);
}

/* ============== Social ============== */
.social-btn {
  height: 38px;
  width: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(245, 245, 247, 0.18);
  color: rgba(245, 245, 247, 0.85);
  transition: background-color 0.25s ease, color 0.25s ease,
    border-color 0.25s ease, transform 0.25s ease;
}
.social-btn:hover {
  background-color: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  transform: translateY(-2px);
}

/* ============== Footer ============== */
.footer-link {
  position: relative;
  transition: color 0.25s ease;
}
.footer-link:hover {
  color: var(--lime-400);
}

/* ============== Reduced motion ============== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============== Mobile tweaks ============== */
@media (max-width: 720px) {
  .phone-tilt-l,
  .phone-tilt-r {
    transform: none;
  }
  .cal-hour { font-size: 10px; padding: 4px; }
}
