/* Landing page. Colors, buttons and shared components come from styles.css (same tokens as the app). */

html { scroll-behavior: smooth; }
.landing a { color: inherit; }
a.brand { text-decoration: none; }
a.cta { display: inline-block; width: auto; text-align: center; text-decoration: none; padding: 14px 24px; }
a.cta.small, .cta.small { padding: 9px 16px; font-size: 14px; }
a.ghost { display: inline-block; text-decoration: none; padding: 13px 18px; }
.micro { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.grad { background: linear-gradient(135deg, #8ea6ff, #b58cff 60%, #6ee7b7); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.l-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; padding: 14px 24px; max-width: 1200px; margin: 0 auto;
  backdrop-filter: blur(10px); background: rgba(11,15,23,.72); border-bottom: 1px solid rgba(36,48,73,.6); }
.l-nav nav { display: flex; gap: 4px; margin-left: auto; }
.l-nav nav a { text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 9px; }
.l-nav nav a:hover { color: var(--text); background: var(--surface-2); }

.nav-login { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--text); padding: 8px 12px; border-radius: 9px; border: 1px solid var(--border); }
.nav-login:hover { background: var(--surface-2); }

main#site, .l-welcome { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* hero */
.l-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 56px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
  padding: 5px 11px; border-radius: 999px; background: rgba(108,140,255,.1); border: 1px solid rgba(108,140,255,.3); }
.l-hero h1 { font-size: clamp(36px, 5.2vw, 60px); letter-spacing: -.035em; line-height: 1.04; margin: 18px 0 16px; }
.lead { font-size: 18px; color: var(--muted); max-width: 580px; margin: 0; }
.l-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.l-proof { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.l-proof b { color: var(--text); font-family: var(--mono); }

.l-demo .browser { background: var(--surface); }
.l-demo-body { padding: 16px; background: var(--surface); }
.l-demo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.l-demo-stats div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.l-demo-stats b { display: block; font: 700 22px var(--mono); }
.l-demo-stats div:nth-child(2) b { color: var(--good); }
.l-demo-stats div:nth-child(3) b { color: #b58cff; }
.l-demo-stats span { font-size: 12px; color: var(--muted); }
.l-demo-feed { list-style: none; margin: 0; padding: 0; height: 250px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  font: 12.5px/1.9 var(--mono); mask-image: linear-gradient(to bottom, transparent, #000 30%); }
.l-demo-feed li { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dim); animation: pop .3s ease; }
.l-demo-feed li.m { color: var(--good); }
.l-demo-feed li.a { color: #c9b3ff; }

/* sections */
.l-section { padding: 64px 0; border-top: 1px solid rgba(36,48,73,.6); }
.l-section > h2, .l-final h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.025em; text-align: center; margin: 0 auto; max-width: 760px; }
.l-sub { text-align: center; color: var(--muted); margin: 12px auto 0; max-width: 560px; }
.l-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.l-steps li, .l-features article { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.l-steps .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.l-steps h3, .l-features h3 { margin: 14px 0 6px; font-size: 17px; }
.l-steps p, .l-features p { margin: 0; color: var(--muted); font-size: 14.5px; }
.l-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.l-features .ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--accent); font-size: 16px; }
.l-features em.plan-tag { font-style: normal; }

/* pricing */
.l-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; align-items: stretch; }
.tier { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px 24px; }
.tier.featured { border-color: rgba(108,140,255,.65); background: linear-gradient(180deg, rgba(108,140,255,.12), var(--surface) 55%);
  box-shadow: 0 20px 60px rgba(108,140,255,.18); transform: translateY(-8px); }
.tier .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #fff;
  padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); white-space: nowrap; }
.tier h3 { margin: 0; font-size: 20px; }
.tier .tagline { margin: 4px 0 0; color: var(--muted); font-size: 14px; min-height: 2.8em; }
.tier .price { margin: 16px 0 2px; display: flex; align-items: baseline; gap: 6px; }
.tier .price b { font: 800 44px/1 var(--sans); letter-spacing: -.03em; }
.tier .price span { color: var(--muted); }
.tier .after { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.tier .cta { width: 100%; }
.tier.soon .ribbon { background: var(--surface-2, #2a3142); color: var(--text, #e6e9f0); border: 1px solid var(--border); }
.tier.soon .price b { opacity: .55; }
[hidden] { display: none !important; }
.tier .micro { text-align: center; font-size: 12.5px; }
.tier ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.tier li { display: flex; gap: 10px; }
.tier li::before { content: "✓"; color: var(--good); font-weight: 800; flex: none; }
.tier li.no { color: var(--dim); }
.tier li.no::before { content: "–"; color: var(--dim); }
.l-fine { text-align: center; font-size: 12.5px; color: var(--dim); margin: 26px auto 0; max-width: 640px; }

/* trust */
.l-trust { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.l-trust h2 { text-align: left; font-size: clamp(24px, 3vw, 34px); margin: 0; letter-spacing: -.02em; }
.l-trust p { color: var(--muted); }
.l-trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.l-trust li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; font-size: 14.5px; color: var(--muted); }
.l-trust li b { display: block; color: var(--text); margin-bottom: 4px; }

/* faq */
.l-faq { max-width: 760px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 10px; }
.l-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 18px; }
.l-faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.l-faq summary::-webkit-details-marker { display: none; }
.l-faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.l-faq details[open] summary::after { content: "–"; }
.l-faq p { margin: 0 0 16px; color: var(--muted); }
.l-faq p b { color: var(--text); font-weight: 600; }

.l-final { text-align: center; padding: 72px 0 80px; border-top: 1px solid rgba(36,48,73,.6); }
.l-final .cta { margin-top: 24px; }
.l-footer { max-width: 1200px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  border-top: 1px solid rgba(36,48,73,.6); font-size: 13px; color: var(--muted); }

/* mock checkout */
.checkout { width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.checkout::backdrop { background: rgba(5,8,14,.75); backdrop-filter: blur(4px); }
.checkout[open] { animation: rise .25s ease; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.checkout form { position: relative; padding: 28px 26px 22px; }
.checkout h2 { margin: 10px 0 16px; font-size: 22px; }
.co-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: none; color: var(--muted); cursor: pointer; }
.co-close:hover { color: var(--text); }
.w-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.co-summary { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); margin-bottom: 18px; font-size: 14px; }
.co-summary div { display: flex; justify-content: space-between; }
.co-summary div:first-child b { color: var(--good); font-size: 16px; }
.co-summary span { color: var(--muted); }
.co-card { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; border: 1px dashed #3a4866; border-radius: 10px; background: var(--bg); color: var(--dim); cursor: not-allowed; }
.co-card-row { display: flex; gap: 10px; }
.co-card-row span { margin-left: auto; } .co-card-row span + span { margin-left: 0; }
.co-test { font-size: 12px; color: var(--warn); }
.checkout .cta { width: 100%; }
.checkout .micro { text-align: center; }
.co-terms { font-size: 12px; color: var(--dim); text-align: center; margin: 8px 0 0; }

/* trial welcome */
.l-welcome { padding-top: 48px; padding-bottom: 64px; }
.w-head { text-align: center; }
.w-head h1 { font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.03em; margin: 14px 0 8px; }
.w-grid { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 16px; margin-top: 36px; }
.w-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.w-card h3 { margin: 0 0 14px; font-size: 17px; }
.w-timer { display: flex; flex-direction: column; justify-content: center; gap: 6px; text-align: center; }
.w-countdown { font: 800 40px/1.1 var(--mono); letter-spacing: -.02em; color: var(--good); }
.small { font-size: 12.5px; }
.w-bar { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.w-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--good), var(--accent)); transition: width 1s linear; }
.w-steps { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.w-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.w-steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.w-steps li.now::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.w-steps span { color: var(--muted); font-size: 13.5px; }
.w-card .cta { display: block; }
.w-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.w-perks li::before { content: "✓  "; color: var(--good); font-weight: 800; }
.w-foot { text-align: center; margin-top: 28px; }

@media (max-width: 960px) {
  .l-hero, .l-trust { grid-template-columns: 1fr; }
  .l-hero { padding-top: 40px; }
  .l-tiers, .l-steps, .l-features, .w-grid { grid-template-columns: 1fr; }
  .tier.featured { transform: none; }
  /* Phones and narrow windows: the section links fold away, but "For employers" stays (it's another page). */
  .l-nav nav { margin-left: auto; }
  .l-nav nav a:not([href="/employers"]) { display: none; }
}
@media (max-width: 560px) {
  main#site, .l-welcome, .l-nav, .l-footer { padding-left: 16px; padding-right: 16px; }
  .l-nav { gap: 8px; }
  .l-nav nav a { padding: 8px 4px; font-size: 13px; }
  .l-nav a { white-space: nowrap; }
  .l-nav .cta.small { display: none; }  /* the hero's big "Start 24-Hour Free Trial" is right below */
  .l-trust ul { grid-template-columns: 1fr; }
  .l-hero-ctas a { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .l-demo-feed li, .checkout[open] { animation: none; }
}

/* ---------- The spider's story (hero): landing.js spiderShow() ---------- */
/* The stage is the strip above the live-scan window; the spider hangs from a thread that fades into the top. */
.l-demo { position: relative; padding-top: 128px; }
.spider-stage { position: absolute; left: -70px; right: -70px; top: -66px; height: 208px; z-index: 2; pointer-events: none;
  overflow: hidden; /* wider than the window, so a big spider can reach past its sides */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26px); mask-image: linear-gradient(to bottom, transparent, #000 26px); }
.spider-rig { position: absolute; left: 0; bottom: 0; width: 190px; transform-origin: 50% 100%;
  transform: translate(calc(100% + 40px), 0); /* where it rests without animation: perched on the window, right side */ }
.spider-stage.animated .spider-rig { transform: translate(0, -400px); }  /* JS takes over from here */
.spider { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,.45));
  transition: opacity .25s ease, transform .35s cubic-bezier(.3,1.6,.5,1); }
.spider-tired { position: relative; display: block; }
.spider-hired { opacity: 0; transform: scale(.8); transform-origin: 50% 100%; }
.spider-rig.hired .spider-tired { opacity: 0; }
.spider-rig.hired .spider-hired { opacity: 1; transform: scale(1); }
/* Silk: from the spider's back up into the dark. */
.spider-thread { position: absolute; left: 46%; bottom: 62%; width: 1.5px; height: 420px; border-radius: 1px;
  background: linear-gradient(to top, rgba(230,235,245,.85), rgba(230,235,245,.15)); }
.spider-rig.hired .spider-thread { opacity: .7; }
/* A little burst of sparkles when he gets hired. */
.spider-burst { position: absolute; left: 50%; bottom: 55%; width: 0; height: 0; }
.spider-burst i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 2px; transform: rotate(45deg); opacity: 0; }
.spider-burst i:nth-child(1) { background: var(--good); --dx: -88px; --dy: -46px; }
.spider-burst i:nth-child(2) { background: var(--accent); --dx: 92px; --dy: -40px; }
.spider-burst i:nth-child(3) { background: var(--warn); --dx: -56px; --dy: -86px; }
.spider-burst i:nth-child(4) { background: var(--accent-2); --dx: 60px; --dy: -84px; }
.spider-burst i:nth-child(5) { background: var(--good); --dx: -118px; --dy: 4px; }
.spider-burst i:nth-child(6) { background: var(--warn); --dx: 116px; --dy: 8px; }
.spider-rig.hired .spider-burst i { animation: sparkle .9s ease-out forwards; }
@keyframes sparkle {
  0% { opacity: 0; transform: translate(0, 0) rotate(45deg) scale(.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(225deg) scale(1); }
}
/* The plan he picks, inside the live-scan window. */
.l-demo-plans { display: flex; gap: 8px; margin-bottom: 12px; }
.l-demo-plans span { flex: 1; text-align: center; padding: 7px 0; border-radius: 9px; font-size: 13px; font-weight: 700;
  color: var(--muted); background: var(--bg); border: 1px solid var(--border); transition: all .25s ease; }
.l-demo-plans span.picked { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(108,140,255,.18), 0 8px 22px rgba(108,140,255,.35); }
@media (max-width: 560px) {
  .l-demo { padding-top: 104px; }
  .spider-stage { top: -46px; height: 162px; }  /* bottom sits 12px into the window, like on desktop */
  .spider-rig { width: 150px; }
  .spider-burst i:nth-child(5), .spider-burst i:nth-child(6) { display: none; }
}/* The spider's strip is wider than the window; never let it make the page scroll sideways. */
html, body.landing { overflow-x: clip; }  /* (landing.css is only loaded on the landing page) */
/* Let the hero's columns shrink to the screen: the live-scan feed's long one-line entries used to stretch
   the page wider than a phone. */
.l-hero > * { min-width: 0; }
