/* ApplyPilot marketing site — light, flat, gradient-accented (Outfit + Work Sans). */
:root {
  --primary: #7c3aed;
  --primary-600: #6d28d9;
  --secondary: #6366f1;
  --accent: #ec4899;
  --bg: #ffffff;
  --bg-soft: #faf5ff;
  --bg-tint: #f7f3fd;
  --fg: #0f172a;
  --muted: #5b647a;
  --border: #ece7f6;
  --border-2: #e2dbf3;
  --grad: linear-gradient(100deg, #7c3aed 0%, #8b5cf6 40%, #ec4899 100%);
  --grad-soft: linear-gradient(120deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.1));
  --ring: 0 0 0 4px rgba(124, 58, 237, 0.16);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(76, 29, 149, 0.22);
  --shadow-lg: 0 30px 70px -24px rgba(76, 29, 149, 0.34);
  --r: 16px;
  --r-lg: 24px;
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .brand { font-family: "Outfit", system-ui, sans-serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .24s ease, background .2s ease, border-color .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--bg-tint); }
.btn-soft { background: var(--bg-tint); color: var(--primary-600); border-color: var(--border-2); }
.btn-soft:hover { background: #efe7fc; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--primary-600); box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-google { width: 100%; background: #fff; color: #1f2430; border: 1px solid var(--border-2); font-family: "Work Sans", sans-serif; padding: 12px; border-radius: 12px; }
.btn-google:hover { background: #faf9ff; box-shadow: var(--shadow-sm); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.16rem; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color .2s ease; }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: .02em; color: var(--primary-600);
  background: var(--bg-tint); border: 1px solid var(--border-2);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.eyebrow-invert { color: #fff; background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.28); }
.eyebrow-invert .dot { background: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 68px 0 40px; }
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 780px; z-index: 0;
  background:
    radial-gradient(50% 45% at 78% 8%, rgba(236, 72, 153, 0.18), transparent 70%),
    radial-gradient(46% 40% at 12% 4%, rgba(124, 58, 237, 0.20), transparent 70%),
    linear-gradient(180deg, var(--bg-soft), #fff 70%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); font-weight: 800; line-height: 1.04; margin: 0 0 20px; }
.lede { font-size: 1.17rem; color: var(--muted); max-width: 34ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-proof { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--muted); max-width: 44ch; }
.hero-proof strong { color: var(--fg); }
.stars { display: inline-flex; gap: 2px; color: #f5a623; flex-shrink: 0; }

/* Product mockup */
.hero-visual { position: relative; }
.window { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.wc { width: 11px; height: 11px; border-radius: 50%; }
.wc.red { background: #ff5f57; } .wc.yellow { background: #febc2e; } .wc.green { background: #28c840; }
.window-title { margin-left: 8px; font-family: "Outfit"; font-weight: 600; font-size: .9rem; }
.pill-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 600; color: var(--primary-600); background: var(--bg-tint); border: 1px solid var(--border-2); padding: 4px 10px; border-radius: 999px; }
.ping { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5);} 70%{ box-shadow: 0 0 0 7px rgba(34,197,94,0);} 100%{ box-shadow: 0 0 0 0 rgba(34,197,94,0);} }
.window-body { padding: 14px; display: grid; gap: 10px; background: linear-gradient(180deg, #fff, #fdfbff); }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.mock-row.highlight { border-color: var(--border-2); box-shadow: 0 8px 22px -14px rgba(124,58,237,.4); }
.mock-avatar { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .82rem; flex-shrink: 0; }
.grad-bg { background: var(--grad); }
.mock-lines { display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; }
.mock-lines b { font-size: .92rem; }
.mock-lines span { font-size: .78rem; color: var(--muted); }
.badge { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-ok { color: #067647; background: #ecfdf3; }
.badge-warn { color: #b54708; background: #fffaeb; }
.badge-run { color: var(--primary-600); background: var(--bg-tint); }
.mock-captcha { border: 1px dashed var(--border-2); border-radius: 12px; padding: 12px; background: var(--bg-soft); }
.mock-captcha-head { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 600; margin-bottom: 10px; }
.mock-live { color: #22c55e; }
.mock-check { display: flex; align-items: center; gap: 10px; font-size: .82rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.mock-box { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--secondary); }
.float-card { position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; line-height: 1.2; }
.float-card b { font-family: "Outfit"; font-size: 1.2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.float-card span { font-size: .75rem; color: var(--muted); }
.float-1 { top: -22px; left: -28px; }
.float-2 { bottom: 4%; right: -28px; }

/* Trust */
.trust { padding: 30px 0 6px; }
.trust-label { text-align: center; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.trust-logos span { font-family: "Outfit"; font-weight: 600; font-size: 1.05rem; color: #9aa1b4; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 26px; transition: transform .22s ease, box-shadow .28s ease, border-color .28s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--grad); margin-bottom: 18px; box-shadow: var(--shadow-md); }
.feature-card h3 { font-size: 1.14rem; margin: 0 0 8px; }
.feature-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { position: relative; padding-top: 8px; }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-family: "Outfit"; font-weight: 700; color: #fff; background: var(--grad); margin-bottom: 16px; box-shadow: var(--shadow-md); }
.step h3 { font-size: 1.05rem; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Download */
.download-section { padding-top: 20px; }
.download-card { position: relative; overflow: hidden; background: linear-gradient(120deg, #4c1d95, #7c3aed 55%, #db2777); color: #fff; border-radius: var(--r-lg); padding: 56px 56px; box-shadow: var(--shadow-lg); }
.download-card h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin: 0 0 12px; max-width: 18ch; }
.download-copy { position: relative; z-index: 1; max-width: 640px; }
.download-copy > p { color: rgba(255, 255, 255, 0.85); font-size: 1.08rem; max-width: 52ch; margin: 0 0 26px; }
.download-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.download-soon { font-size: .9rem; color: rgba(255, 255, 255, 0.72); }
.download-note { margin: 20px 0 0; font-size: .86rem; color: rgba(255, 255, 255, 0.7); }
.download-glow { position: absolute; width: 440px; height: 440px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.28), transparent 65%); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 4px 20px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.faq summary { font-family: "Outfit"; font-weight: 600; font-size: 1.02rem; cursor: pointer; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); margin: 0 0 16px; font-size: .96rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 34px 0; background: var(--bg-soft); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Auth modal */
.modal-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(23, 12, 45, 0.5); backdrop-filter: blur(6px); }
.modal { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 34px 32px; box-shadow: var(--shadow-lg); animation: modal-in .28s cubic-bezier(.2,.9,.3,1.2); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; display: grid; place-items: center; border: none; background: var(--bg-tint); color: var(--muted); border-radius: 9px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.modal-close:hover { background: #efe7fc; color: var(--fg); }
.modal-brand { font-size: 1.05rem; margin-bottom: 18px; }
.modal-title { font-size: 1.6rem; margin: 0 0 6px; }
.modal-sub { color: var(--muted); font-size: .96rem; margin: 0 0 22px; }
.divider { display: flex; align-items: center; text-align: center; color: #9aa1b4; font-size: .82rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.divider span { padding: 0 12px; }
.auth-form { display: grid; gap: 14px; }
.auth-form label { display: grid; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--fg); }
.auth-form input { padding: 12px 14px; border: 1px solid var(--border-2); border-radius: 11px; font: inherit; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.auth-form input:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.auth-msg { min-height: 20px; font-size: .88rem; margin: 12px 0 0; text-align: center; }
.auth-msg.error { color: #dc2626; }
.auth-msg.ok { color: #067647; }
.auth-switch { text-align: center; font-size: .9rem; color: var(--muted); margin: 16px 0 0; }
.linklike { border: none; background: none; color: var(--primary-600); font-weight: 600; cursor: pointer; font: inherit; padding: 0; }
.linklike:hover { text-decoration: underline; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .download-card { padding: 40px 28px; }
}
@media (max-width: 560px) {
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .lede { max-width: none; }
  .float-1 { left: -12px; } .float-2 { right: -8px; }
  .section { padding: 60px 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ping { animation: none; }
  html { scroll-behavior: auto; }
}
