/* Ommify custom styles */
:root { --grid: rgba(15,23,42,0.05); }

html { scroll-behavior: smooth; }

.grid-bg {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
}

/* Visible by default; only animate if JS marks the body as ready */
.fade-up { transition: opacity .7s ease, transform .7s ease; }
.js-ready .fade-up { opacity: 0; transform: translateY(24px); }
.js-ready .fade-up.in { opacity: 1; transform: none; }

.btn-primary {
  background: #0f172a; color: #fff; padding: 1rem 2rem; border-radius: .9rem;
  font-weight: 600; font-size: 1rem; display: inline-flex; align-items: center; gap: .5rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 10px 30px -10px rgba(15,23,42,.45);
}
.btn-primary:hover { transform: translateY(-1px); background:#172139; }

.btn-outline {
  background:#fff; color:#0f172a; padding: 1rem 2rem; border-radius:.9rem;
  font-weight:600; font-size:1rem; border:1px solid #e2e8f0;
  display:inline-flex; align-items:center; gap:.5rem;
  transition: transform .2s ease, border-color .2s ease;
}
.btn-outline:hover { transform: translateY(-1px); border-color:#cbd5e1; }

.btn-accent {
  background:#2563eb; color:#fff; padding:1rem 2rem; border-radius:.9rem;
  font-weight:600; font-size:1rem; display:inline-flex; align-items:center; gap:.5rem;
  box-shadow: 0 12px 30px -8px rgba(37,99,235,.45);
  transition: transform .2s ease, background .2s ease;
}
.btn-accent:hover { background:#1d4ed8; transform: translateY(-1px); }

.tag {
  display:inline-flex; align-items:center; gap:.5rem;
  background:#eaeef5; color:#324570; padding:.4rem 1rem;
  border-radius: 999px; font-size:.75rem; font-weight:600; letter-spacing:.02em;
}

.card {
  background:#fff; border:1px solid #eaeef5; border-radius:1.25rem; padding:1.75rem;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color:#cdd6e6; transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(15,23,42,.15); }

.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg,#172139,#324570);
  color:#fff;
}

/* table comparison */
.cmp td, .cmp th { padding: 1rem 1.25rem; }
.cmp tr + tr td { border-top: 1px solid #eaeef5; }

/* pricing toggle */
.toggle-knob { transition: transform .25s ease; }
.toggle-on .toggle-knob { transform: translateX(28px); }

.pricing-cycle-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.pricing-cycle-toggle span {
  color: #64748b;
  font-weight: 600;
  font-size: 17px;
}
.pricing-cycle-toggle span.active {
  color: #0f172a;
}
.pricing-cycle-toggle strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  color: #0ea5e9;
  font-size: 14px;
  font-weight: 700;
}
.pricing-cycle-toggle .switch-plan-toggle {
  position: relative;
  width: 56px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
}
.pricing-cycle-toggle .switch-plan-toggle span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.25);
  transition: transform .18s ease;
}
.pricing-cycle-toggle .switch-plan-toggle.is-yearly {
  background: #0ea5e9;
}
.pricing-cycle-toggle .switch-plan-toggle.is-yearly span {
  transform: translateX(24px);
}

/* ---------- Mobile (phones) ---------- */
.mobile-cta-bar { display: none; }
@media (max-width: 639px) {
  /* Headlines sized for a 360-414px screen instead of desktop sizes */
  h1.text-5xl, h1.text-6xl, h1.text-7xl { font-size: 2.5rem; line-height: 1.08; }
  h1.text-4xl { font-size: 2.1rem; line-height: 1.12; }
  h2.text-4xl, h2.text-5xl { font-size: 1.9rem; line-height: 1.15; }

  /* Comfortable, full-width primary actions */
  .btn-accent, .btn-outline, .btn-primary { padding: .95rem 1.25rem; justify-content: center; }
  .cta-row > .btn-accent, .cta-row > .btn-outline, .cta-row > .btn-primary { width: 100%; }

  /* Pill tags wrap cleanly instead of squeezing the badge */
  .tag { flex-wrap: wrap; row-gap: .35rem; padding: .45rem .85rem; line-height: 1.35; }

  /* 16px form text stops iOS Safari from zooming into the page on focus */
  input, select, textarea { font-size: 16px !important; }

  /* Hover lift is meaningless on touch and causes jumpy taps */
  .card:hover, .btn-accent:hover, .btn-outline:hover, .btn-primary:hover { transform: none; }

  /* The billing hint is text, not a button */
  .pricing-cycle-toggle strong { border: 0; min-height: 0; padding: 0; width: 100%; justify-content: center; font-size: 13px; }
  .pricing-cycle-toggle span { font-size: 16px; }

  /* Sticky "Start free" bar (logged-out visitors) */
  .mobile-cta-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    gap: .6rem; align-items: center; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-top: 1px solid #eaeef5; box-shadow: 0 -8px 24px -12px rgba(15,23,42,.18);
    transform: translateY(110%); transition: transform .25s ease;
  }
  .mobile-cta-bar.is-visible { transform: none; }
  .mobile-cta-bar .mcb-text { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.3; color: #475d8a; }
  .mobile-cta-bar .mcb-text strong { display: block; color: #0f172a; font-size: 14px; }
  .mobile-cta-bar a { white-space: nowrap; background: #2563eb; color: #fff; font-weight: 700; font-size: 15px;
    padding: .8rem 1.1rem; border-radius: .8rem; box-shadow: 0 10px 24px -10px rgba(37,99,235,.6); }
  body.has-mobile-cta { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
