/*
 * KeepMyBooking - Homepage below-fold sections
 * Pairs with index.html hero (inline styles) and home-reveal.js
 */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-main {
  position: relative;
  z-index: 2;
}

.home-section {
  padding: 5.5rem 1.5rem;
}

.home-section--alt {
  background: var(--bg-secondary, #f9fafb);
}

.home-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-purple, #4b0082);
  background: rgba(75, 0, 130, 0.07);
  border: 1px solid rgba(75, 0, 130, 0.1);
  margin-bottom: 1.25rem;
}

.home-section-title {
  font-family: var(--sans, 'Inter Tight', system-ui, sans-serif);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--ink, #0a0618);
  margin-bottom: 1rem;
}

.home-section-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink-soft, #4a4458);
  max-width: 42rem;
  margin: 0 auto 2.75rem;
}

.home-section-lead--center {
  text-align: center;
}

.home-section-header {
  text-align: center;
  margin-bottom: 0.5rem;
}

/* ── Pillars ─────────────────────────────────────────────────────── */

.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.home-pillar {
  background: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow:
    0 1px 2px rgba(10, 6, 24, 0.06),
    0 12px 32px -8px rgba(10, 6, 24, 0.12);
  border: 1px solid rgba(10, 6, 24, 0.05);
}

.home-section--alt .home-pillar {
  background: #fff;
}

.home-pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(75, 0, 130, 0.08);
  color: var(--brand-purple, #4b0082);
  margin-bottom: 1.1rem;
}

.home-pillar-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #0a0618);
  margin-bottom: 0.5rem;
}

.home-pillar-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft, #4a4458);
}

/* ── How it works steps ──────────────────────────────────────────── */

.home-steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.home-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.home-step--reverse .home-step-content {
  order: 2;
}

.home-step--reverse .home-step-visual {
  order: 1;
}

.home-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-crimson, #cc0000);
  margin-bottom: 0.65rem;
}

.home-step-title {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink, #0a0618);
  margin-bottom: 0.75rem;
}

.home-step-text {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft, #4a4458);
  max-width: 28rem;
}

.home-step-visual {
  display: flex;
  justify-content: center;
}

.home-phone-shot--dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: min(380px, 92vw);
  align-items: start;
}

.home-shot-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.home-shot-caption {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-mute, #8a8499);
  text-align: center;
  line-height: 1.35;
  max-width: 140px;
}

.home-callout {
  margin-top: 3.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft, #4a4458);
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.home-callout strong {
  color: #047857;
  font-weight: 700;
}

/* ── Categories bento ────────────────────────────────────────────── */

.home-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.home-bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 200px;
  background: #1e1b2e;
  box-shadow:
    0 2px 4px rgba(10, 6, 24, 0.08),
    0 14px 30px -6px rgba(10, 6, 24, 0.2);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-bento-card:hover {
  transform: translateY(-4px);
}

.home-bento-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-bento-card--gradient {
  background: linear-gradient(145deg, #4b0082 0%, #7c3aed 55%, #cc0000 120%);
}

.home-bento-card--gradient .home-bento-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
}

.home-bento-card--gradient .home-bento-icon svg {
  width: 64px;
  height: 64px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.25;
}

.home-bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 6, 24, 0.88) 0%, rgba(10, 6, 24, 0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.home-bento-label {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.home-bento-example {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

/* ── For businesses split ────────────────────────────────────────── */

.home-business-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.home-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.home-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft, #4a4458);
}

.home-feature-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(75, 0, 130, 0.1);
  color: var(--brand-purple, #4b0082);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.home-pricing-card {
  background: #fff;
  border-radius: 24px;
  padding: 2rem 1.75rem;
  box-shadow:
    0 1px 2px rgba(10, 6, 24, 0.06),
    0 16px 40px -10px rgba(10, 6, 24, 0.18),
    0 0 0 1px rgba(75, 0, 130, 0.08);
}

.home-pricing-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-purple, #4b0082);
  margin-bottom: 0.75rem;
}

.home-pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  margin-bottom: 0.35rem;
}

.home-pricing-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink, #0a0618);
}

.home-pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink, #0a0618);
  line-height: 1;
}

.home-pricing-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-mute, #8a8499);
  margin-left: 0.15rem;
}

.home-pricing-sub {
  font-size: 0.92rem;
  color: var(--ink-soft, #4a4458);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.home-pricing-sub strong {
  color: var(--ink, #0a0618);
}

.home-pricing-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(10, 6, 24, 0.08);
}

.home-pricing-perks li {
  font-size: 0.88rem;
  color: var(--ink-soft, #4a4458);
  padding-left: 1.25rem;
  position: relative;
}

.home-pricing-perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-purple, #4b0082);
}

.home-pricing-addon {
  font-size: 0.85rem;
  color: var(--ink-mute, #8a8499);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.home-pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
}

.home-btn:active {
  transform: scale(0.98);
}

.home-btn--primary {
  background: var(--brand-purple, #4b0082);
  color: #fff;
}

.home-btn--primary:hover {
  color: #fff;
  opacity: 0.92;
}

.home-btn--secondary {
  background: transparent;
  color: var(--brand-purple, #4b0082);
  border: 1.5px solid rgba(75, 0, 130, 0.25);
}

.home-btn--secondary:hover {
  color: var(--brand-purple, #4b0082);
  border-color: rgba(75, 0, 130, 0.45);
}

/* ── Trust band ──────────────────────────────────────────────────── */

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.home-trust-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(10, 6, 24, 0.06);
  box-shadow: 0 4px 16px -4px rgba(10, 6, 24, 0.08);
}

.home-section--alt .home-trust-item {
  background: #fff;
}

.home-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 0.85rem;
  border-radius: 10px;
  background: rgba(75, 0, 130, 0.08);
  color: var(--brand-purple, #4b0082);
}

.home-trust-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.home-trust-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink, #0a0618);
  margin-bottom: 0.35rem;
}

.home-trust-text {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-soft, #4a4458);
}

.home-trust-text a {
  color: var(--brand-purple, #4b0082);
  text-decoration: none;
}

.home-trust-text a:hover {
  text-decoration: underline;
}

.home-trust-stripe {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

.home-trust-stripe img {
  height: 28px;
  width: auto;
}

/* ── Final CTA ───────────────────────────────────────────────────── */

.home-cta-band {
  padding: 4.5rem 1.5rem;
  background: linear-gradient(165deg, rgba(75, 0, 130, 0.06) 0%, rgba(204, 0, 0, 0.04) 100%);
  border-top: 1px solid rgba(75, 0, 130, 0.08);
  text-align: center;
}

.home-cta-title {
  font-family: var(--sans, 'Inter Tight', system-ui, sans-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink, #0a0618);
  margin-bottom: 0.65rem;
}

.home-cta-sub {
  font-size: 1rem;
  color: var(--ink-soft, #4a4458);
  margin-bottom: 2rem;
}

.home-cta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.home-cta-badges a {
  display: inline-block;
  line-height: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-cta-badges a:hover {
  transform: translateY(-2px);
}

.home-cta-badges img {
  height: max(52px, 0.3in);
  width: auto;
}

/* ── Scroll reveal ───────────────────────────────────────────────── */

.home-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .home-pillars {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin: 0 auto;
  }

  .home-step {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .home-step--reverse .home-step-content,
  .home-step--reverse .home-step-visual {
    order: unset;
  }

  .home-step-content {
    text-align: center;
  }

  .home-step-text {
    margin: 0 auto;
  }

  .home-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-business-split {
    grid-template-columns: 1fr;
  }

  .home-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .home-section {
    padding: 4rem 1.25rem;
  }

  .home-bento {
    grid-template-columns: 1fr;
  }

  .home-bento-card {
    min-height: 160px;
  }

  .home-trust-grid {
    grid-template-columns: 1fr;
  }

  .home-cta-badges {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.65rem;
  }

  .home-cta-badges img {
    height: max(48px, 0.3in);
  }
}
