/* ============================================================
   Fallship Landing Page — Standalone CSS
   No build step required. Served statically via nginx.
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; tab-size: 4; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

/* --- Colors --- */
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.text-gray-900 { color: #111827; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-indigo-600 { color: #4f46e5; }
.text-green-600 { color: #16a34a; }
.text-green-500 { color: #22c55e; }
.text-red-500 { color: #ef4444; }
.text-white { color: #fff; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-100 { background-color: #e0e7ff; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-indigo-600 { border-color: #4f46e5; }

/* --- Typography --- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.leading-tight { line-height: 1.25; }
.text-center { text-align: center; }

/* --- Spacing --- */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.p-2 { padding: 0.5rem; }
.p-6 { padding: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-6 { padding-top: 1.5rem; }

/* --- Layout --- */
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-16 { height: 4rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.whitespace-nowrap { white-space: nowrap; }

/* --- Grid --- */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* --- Border & Rounded --- */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; border-color: #e5e7eb; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: #e5e7eb; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; border-color: #e5e7eb; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* --- Transitions --- */
.transition-colors { transition-property: color, background-color, border-color; transition-duration: 150ms; transition-timing-function: ease-in-out; }

/* --- Interactive --- */
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:bg-indigo-50:hover { background-color: #eef2ff; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:text-gray-900:hover { color: #111827; }
.hover\:underline:hover { text-decoration: underline; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #4f46e5; }
.focus\:border-transparent:focus { border-color: transparent; }
input:focus { outline: none; box-shadow: 0 0 0 2px #4f46e5; border-color: transparent; }
.scroll-smooth { scroll-behavior: smooth; }
.cursor-pointer { cursor: pointer; }

/* --- Hero gradient --- */
.hero-gradient {
  background: linear-gradient(180deg, #eef2ff 0%, #fff 100%);
}

/* --- Feature card --- */
.feature-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: #fff;
  transition: box-shadow 150ms ease-in-out;
}
.feature-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* --- Feature icon --- */
.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: #e0e7ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Tier checklist --- */
.tier-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  list-style: none;
}
.tier-item::before {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background-size: 1.25rem 1.25rem;
  background-repeat: no-repeat;
}
.tier-yes { color: #374151; }
.tier-yes::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322c55e' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.tier-no { color: #9ca3af; }
.tier-no::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d1d5db' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E");
}

/* --- Pricing badge --- */
.absolute.-top-3 { top: -0.75rem; }
.left-6 { left: 1.5rem; }
[class*="absolute"][class*="-top-3"] { top: -0.75rem; }

/* --- FAQ --- */
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}
.faq-question {
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  padding: 1rem 1.5rem;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ""; }
.faq-question::before {
  content: "+";
  float: right;
  font-size: 1.25rem;
  font-weight: 400;
  color: #9ca3af;
  transition: transform 150ms ease-in-out;
}
details[open] .faq-question::before {
  content: "\2212";
}

/* --- Form input --- */
input[type="email"] {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  background: #fff;
  color: #111827;
}
input[type="email"]::placeholder { color: #9ca3af; }

/* --- Responsive --- */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Pricing badge positioning --- */
.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
}

/* --- Utility for py-2.5 --- */
.py-2\.5, [class*="py-2.5"] { padding-top: 0.625rem; padding-bottom: 0.625rem; }

/* --- Nav scroll effect --- */
.nav-scrolled {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

/* --- Fade-in on scroll --- */
.fade-in-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger feature cards */
.feature-card:nth-child(2).fade-in-hidden { transition-delay: 0.1s; }
.feature-card:nth-child(3).fade-in-hidden { transition-delay: 0.2s; }
.feature-card:nth-child(4).fade-in-hidden { transition-delay: 0.3s; }
.feature-card:nth-child(5).fade-in-hidden { transition-delay: 0.4s; }
.feature-card:nth-child(6).fade-in-hidden { transition-delay: 0.5s; }

/* --- Button disabled state --- */
button:disabled { opacity: 0.5; cursor: not-allowed; }
