/* FirstLocker — custom styles */

:root {
  --brand: #2563EB;
  --brand-2: #1E40AF;
  --accent: #60A5FA;
  --ink: #0F172A;
  --mute: #475569;
  --line: #E2E8F0;
  --surface: #F8FAFC;
}

html { scroll-behavior: smooth; background: #ffffff; }
html, body { max-width: 100%; }
/* `overflow-x: clip` clips horizontal overflow without creating a scroll container
   (so position:sticky still works). Falls back to overflow-x:hidden in older browsers. */
html { overflow-x: hidden; overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }
/* Prevent grid/flex items from overflowing their tracks due to implicit min-width:auto */
[class*="grid"] > *, [class*="flex"] > * { min-width: 0; }

/* Visually hidden — no off-screen positioning, no overflow leaks */
.sr-only-fl {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Heading display style */
.display {
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.045em;
  line-height: 1.02;
  word-break: break-word;
  hyphens: auto;
}
@media (min-width: 640px) {
  .display { line-height: 0.98; }
}
.display em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* Nav glass shell */
.nav-shell {
  background: rgba(255,255,255,0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 1px 0 rgba(15,23,42,0.02), 0 8px 30px -12px rgba(15,23,42,0.08);
  min-width: 0;
}
header.scrolled .nav-shell {
  background: rgba(255,255,255,0.92);
  border-color: rgba(15,23,42,0.08);
}

/* Mobile menu animation */
.mobile-menu {
  transition: opacity .25s ease;
  opacity: 0;
}
.mobile-menu.is-open { pointer-events: auto; opacity: 1; }
.mobile-menu .mobile-menu__scrim {
  opacity: 0;
  transition: opacity .35s ease;
}
.mobile-menu.is-open .mobile-menu__scrim { opacity: 1; }
.mobile-menu .mobile-menu__panel {
  opacity: 0;
  transform: translateY(-10px) scale(.985);
  transform-origin: top center;
  transition: transform .35s cubic-bezier(.22,.9,.3,1.2), opacity .25s ease;
}
.mobile-menu.is-open .mobile-menu__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.mobile-menu__item {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s ease;
  transition-delay: 0ms;
}
.mobile-menu.is-open .mobile-menu__item {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(120ms + var(--i, 0) * 45ms);
}

/* Hamburger morph */
#menu-btn { transition: background .2s ease, border-color .2s ease; }
#menu-btn.is-active { background: var(--ink); border-color: var(--ink); }
#menu-btn.is-active svg { color: #fff; }
#menu-btn svg path { transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease; transform-origin: center; transform-box: fill-box; }
#menu-btn.is-active svg path:nth-child(1) { transform: translateY(5px) rotate(45deg); }
#menu-btn.is-active svg path:nth-child(2) { opacity: 0; }
#menu-btn.is-active svg path:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Reusable “eyebrow” */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute); font-weight: 600;
}
.eyebrow::before {
  content: ""; height: 6px; width: 6px; border-radius: 999px; background: var(--brand);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

/* Subtle dotted background */
.dot-grid {
  background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.10) 1px, transparent 0);
  background-size: 22px 22px;
}

/* Hero grid */
.hero-grid {
  background:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px) 0 0/64px 64px,
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px) 0 0/64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 50%, transparent 100%);
}

/* Aurora glow behind hero */
.aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 70%;
  background:
    radial-gradient(40% 60% at 20% 30%, rgba(96,165,250,0.30), transparent 70%),
    radial-gradient(40% 60% at 80% 20%, rgba(37,99,235,0.18), transparent 70%),
    radial-gradient(50% 60% at 50% 80%, rgba(30,64,175,0.10), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}

/* Phone mock */
.phone-frame {
  position: relative;
  background: linear-gradient(160deg, #1f2937 0%, #0f172a 70%);
  border-radius: 44px;
  padding: 12px;
  max-width: 100%;
  box-shadow:
    0 30px 60px -20px rgba(15,23,42,0.40),
    0 10px 30px -10px rgba(37,99,235,0.20),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}
.phone-screen {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #0f172a; border-radius: 999px; z-index: 5;
}

/* Soft card */
.soft-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.soft-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37,99,235,0.30);
  box-shadow: 0 18px 40px -20px rgba(37,99,235,0.25);
}

/* Numbered step label */
.step-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 44px;
  line-height: 1;
  display: inline-block;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (min-width: 640px) {
  .step-num { font-size: 56px; }
}

/* Marquee */
.marquee {
  display: flex; gap: 56px; align-items: center;
  animation: marquee 28s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Lock screen demo */
.lock-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.95) 100%);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px;
  text-align: center;
  border-radius: 32px;
  opacity: 0;
  transition: opacity .8s ease;
}
.lock-overlay.show { opacity: 1; }
.lock-pulse { box-shadow: 0 0 0 0 rgba(96,165,250,0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(96,165,250,0.6); }
  100% { box-shadow: 0 0 0 24px rgba(96,165,250,0); }
}

/* Section eyebrow rule */
.rule {
  height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(15,23,42,0.15) 50%, transparent 100%);
}

/* Animated gradient border button (used sparingly) */
.btn-grad {
  position: relative; isolation: isolate;
  color: #fff; background: var(--ink);
  border-radius: 14px; padding: 14px 22px;
  font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  white-space: nowrap;
  transition: transform .25s ease;
}
.btn-grad::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 15px;
  background: conic-gradient(from 0deg, var(--accent), var(--brand), var(--brand-2), var(--accent));
  filter: blur(8px); opacity: 0; transition: opacity .3s ease;
}
.btn-grad:hover { transform: translateY(-1px); }
.btn-grad:hover::before { opacity: .7; }

/* Reveal animation utility (used as initial state for GSAP) */
.reveal { opacity: 0; transform: translateY(24px); }

/* Logo strip box */
.logo-chip {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
  font-size: 13px; color: var(--mute); white-space: nowrap;
}

/* Pricing-like stat tile */
.stat-tile {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px;
  background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
}

/* FAQ */
details.faq {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 17px;
  color: var(--ink);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .plus {
  width: 28px; height: 28px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); transition: transform .3s ease, background .3s ease;
}
details.faq[open] summary .plus { background: var(--ink); color: #fff; transform: rotate(45deg); }
details.faq p { color: var(--mute); margin-top: 12px; line-height: 1.7; }

/* Form */
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-size: 12px; letter-spacing: .04em; color: var(--mute); font-weight: 600; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-size: 15px; background: #fff; color: var(--ink);
  font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

/* Screenshot placeholder */
.screenshot-placeholder {
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef2f9 100%);
  border: 1px dashed rgba(15,23,42,0.12);
  position: relative;
  overflow: hidden;
}
.screenshot-placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.6) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 3.4s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  .marquee { animation: none; }
}
