/* TravelOS marketing site — custom styles on top of Tailwind CDN (light theme) */

::selection {
  background: #10b981;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* ---------- Hero background ---------- */
.hero-grid {
  background-image:
    linear-gradient(rgba(100, 116, 139, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 116, 139, 0.1) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 55%, transparent 100%);
}

.hero-glow {
  background: radial-gradient(ellipse 55% 45% at 50% 0%, rgba(16, 185, 129, 0.12), transparent 70%);
}

/* ---------- Gradient text ---------- */
.text-gradient {
  background: linear-gradient(100deg, #059669 0%, #0d9488 50%, #0284c7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Nav ---------- */
.nav-blur {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: #10b981;
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: #0f172a;
}

/* ---------- Cards ---------- */
.card-hover {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 20px 40px -18px rgba(16, 185, 129, 0.25);
}

/* ---------- Dashboard mockup ---------- */
.mockup-shadow {
  box-shadow:
    0 0 0 1px rgba(100, 116, 139, 0.12),
    0 30px 80px -20px rgba(15, 23, 42, 0.25),
    0 0 120px -30px rgba(16, 185, 129, 0.2);
}

.chart-bar {
  transform-origin: bottom;
  animation: barGrow 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
.chart-bar:nth-child(1) { animation-delay: 0.55s; }
.chart-bar:nth-child(2) { animation-delay: 0.65s; }
.chart-bar:nth-child(3) { animation-delay: 0.75s; }
.chart-bar:nth-child(4) { animation-delay: 0.85s; }
.chart-bar:nth-child(5) { animation-delay: 0.95s; }
.chart-bar:nth-child(6) { animation-delay: 1.05s; }
.chart-bar:nth-child(7) { animation-delay: 1.15s; }
.chart-bar:nth-child(8) { animation-delay: 1.25s; }
.chart-bar:nth-child(9) { animation-delay: 1.35s; }
.chart-bar:nth-child(10) { animation-delay: 1.45s; }
.chart-bar:nth-child(11) { animation-delay: 1.55s; }
.chart-bar:nth-child(12) { animation-delay: 1.65s; }

/* ---------- Marquee (agency types strip) ---------- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Pricing highlight ---------- */
.plan-popular {
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(160deg, #10b981, #0ea5e9) border-box;
  border: 1.5px solid transparent;
}

/* ---------- FAQ accordion ---------- */
details.faq summary {
  list-style: none;
  cursor: pointer;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq .faq-icon {
  transition: transform 0.25s ease;
}
details.faq[open] .faq-icon {
  transform: rotate(45deg);
}

/* ---------- Form ---------- */
.field {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgb(203 213 225);
  background: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field::placeholder {
  color: #94a3b8;
}
.field:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.field-error {
  border-color: #ef4444 !important;
}

.required-mark {
  color: #ef4444;
}

/* Honeypot — visually hidden but present in DOM */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Spinner */
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 9999px;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Ticker numbers ---------- */
.tabular {
  font-variant-numeric: tabular-nums;
}

/* ---------- Icon helpers ---------- */
.icon-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 0.75rem;
}
.icon-mark--xs {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
}
.icon-mark--md {
  width: 2.75rem;
  height: 2.75rem;
}
.icon-mark--lg {
  width: 3rem;
  height: 3rem;
}
.icon-cell-yes::before {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  margin: 0 auto;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
