/* Shortlistr — landing page
 * Ink/lime brand taken from the product itself, so the site and the app read as
 * one thing. Motion is opt-out via prefers-reduced-motion throughout.
 */

:root {
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --stone: #6b6b6b;
  --mist: #e6e6e3;
  --sage: #f4f5f0;
  --paper: #ffffff;
  --lime: #c6f24e;
  --lime-deep: #9fd11c;
  --lime-ink: #3f5a06;

  --max: 1120px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .05);
  --shadow: 0 14px 40px -22px rgba(17, 17, 17, .28);
  --shadow-lg: 0 40px 90px -50px rgba(17, 17, 17, .45);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Urbanist, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* ── type ──────────────────────────────────────────────────────────────── */

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -.028em; }
h3 { font-size: 1.16rem; letter-spacing: -.015em; line-height: 1.3; }
p  { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--lime-deep);
}

.lead { font-size: clamp(1.06rem, 1.9vw, 1.24rem); color: var(--stone); line-height: 1.62; }
.muted { color: var(--stone); }
.mark {
  background: linear-gradient(transparent 62%, var(--lime) 62%);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ── buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.6rem; border-radius: 999px;
  font-size: 1rem; font-weight: 800; letter-spacing: -.01em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              background .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; }

.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: 0 22px 48px -22px rgba(17,17,17,.55); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--mist); }
.btn-ghost:hover { border-color: var(--ink); background: var(--sage); }

.btn-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 16px 40px -24px var(--lime-deep); }
.btn-lime:hover { background: #d3f76d; }

/* ── header ────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-head.is-stuck { border-bottom-color: var(--mist); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.head-nav { display: none; gap: 2rem; }
.head-nav a {
  text-decoration: none; font-size: .95rem; font-weight: 700; color: var(--stone);
  position: relative; transition: color .2s ease;
}
.head-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--lime-deep); border-radius: 2px; transition: right .3s var(--ease);
}
.head-nav a:hover { color: var(--ink); }
.head-nav a:hover::after { right: 0; }
.head-cta { display: flex; align-items: center; gap: .6rem; }
.head-cta .btn { padding: .6rem 1.1rem; font-size: .92rem; }
@media (min-width: 900px) { .head-nav { display: flex; } }

/* ── sections ──────────────────────────────────────────────────────────── */

section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { max-width: 46rem; display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.tint { background: var(--sage); }
.rule { height: 1px; background: var(--mist); border: 0; margin: 0; }

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero { padding-top: clamp(3.5rem, 7vw, 5.5rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.12fr .88fr; } }

.repo-pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .48rem .55rem .48rem .95rem; border-radius: 999px;
  border: 1.5px solid var(--mist); background: #fff;
  font-size: .88rem; font-weight: 700; color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.repo-pill:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.repo-pill svg { flex: 0 0 auto; }
.repo-pill .sep { width: 1px; height: 18px; background: var(--mist); }
.repo-pill .stat { display: inline-flex; align-items: center; gap: .3rem; color: var(--stone); font-weight: 700; }
.repo-pill .chip {
  padding: .18rem .6rem; border-radius: 999px; background: var(--lime);
  color: var(--lime-ink); font-size: .76rem; font-weight: 800;
}

.hero h1 { margin: 1.5rem 0 0; }
.hero .lead { margin-top: 1.35rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.1rem; }
.hero-note { margin-top: 1.4rem; font-size: .92rem; color: var(--stone); display: flex; flex-wrap: wrap; gap: 1.15rem; }
.hero-note span { display: inline-flex; align-items: center; gap: .42rem; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime-deep); flex: 0 0 auto; }

/* funnel visual */
.viz { position: relative; }
.viz-card {
  background: #fff; border: 1px solid var(--mist); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 1.5rem; position: relative; z-index: 2;
}
.viz-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.15rem; }
.viz-head .t { font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 700; color: var(--stone); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-deep); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.82); } }

.stage { display: grid; gap: .6rem; }
.stage-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  padding: .85rem 1.05rem; border-radius: var(--r); border: 1px solid var(--mist);
  background: var(--sage);
}
.stage-row.is-final { background: var(--ink); border-color: var(--ink); color: #fff; }
.stage-row.is-final .stage-sub { color: rgba(255,255,255,.62); }
.stage-name { font-weight: 800; font-size: .98rem; letter-spacing: -.01em; }
.stage-sub { font-size: .8rem; color: var(--stone); margin-top: .1rem; }
.stage-num { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stage-bar { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.stage-bar i { display: block; height: 100%; width: 0; background: var(--lime-deep); border-radius: 3px; }
.stage-row.is-final .stage-bar { background: rgba(255,255,255,.16); }
.stage-row.is-final .stage-bar i { background: var(--lime); }

.viz-foot {
  margin-top: 1.15rem; padding-top: 1.1rem; border-top: 1px solid var(--mist);
  font-size: .86rem; color: var(--stone); display: flex; align-items: center; gap: .5rem;
}

.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; z-index: 1; pointer-events: none; }
.blob-a { width: 320px; height: 320px; background: var(--lime); top: -70px; right: -60px; }
.blob-b { width: 260px; height: 260px; background: #cfe8ff; bottom: -80px; left: -70px; opacity: .45; }

/* ── logos / proof strip ───────────────────────────────────────────────── */

.proof { padding: 2.4rem 0; border-top: 1px solid var(--mist); border-bottom: 1px solid var(--mist); background: var(--sage); }
.proof-row { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 760px) { .proof-row { grid-template-columns: repeat(4, 1fr); } }
.proof-n { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.proof-l { font-size: .84rem; color: var(--stone); margin-top: .2rem; font-weight: 600; }

/* ── split (problem / solution) ────────────────────────────────────────── */

.split { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.panel { padding: clamp(1.6rem, 3vw, 2.2rem); border-radius: var(--r-lg); border: 1px solid var(--mist); background: #fff; }
.panel.bad { background: #fff; }
.panel.good { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel h3 { margin-bottom: 1.15rem; font-size: 1.3rem; }
.panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .85rem; }
.panel li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: 1rem; }
.panel.bad li { color: var(--stone); }
.panel.good li { color: rgba(255,255,255,.9); }
.ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; flex: 0 0 auto; }
.ic-x { background: #f1f1ef; color: var(--stone); }
.ic-v { background: var(--lime); color: var(--lime-ink); }

/* ── features ──────────────────────────────────────────────────────────── */

.cards { display: grid; gap: 1.15rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  padding: 1.75rem; border-radius: var(--r-lg); border: 1px solid var(--mist); background: #fff;
  transition: transform .34s var(--ease), box-shadow .34s var(--ease), border-color .34s ease;
  will-change: transform;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d8d8d3; }
.card .glyph {
  width: 42px; height: 42px; border-radius: 12px; background: var(--sage);
  display: grid; place-items: center; margin-bottom: 1.15rem; color: var(--ink);
  transition: background .3s ease;
}
.card:hover .glyph { background: var(--lime); }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .97rem; color: var(--stone); }

/* ── how it works ──────────────────────────────────────────────────────── */

.steps { display: grid; gap: 1.1rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; padding: 1.7rem; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--mist);
}
.step-n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--lime);
  display: grid; place-items: center; font-weight: 800; font-size: .95rem; margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { font-size: .97rem; color: var(--stone); }

/* ── stack ─────────────────────────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.chip-t {
  padding: .48rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--mist);
  font-size: .89rem; font-weight: 700; color: var(--ink-soft);
  transition: border-color .25s ease, transform .25s var(--ease);
}
.chip-t:hover { border-color: var(--ink); transform: translateY(-2px); }

.code {
  background: var(--ink); color: #eaeae6; border-radius: var(--r-lg); padding: 1.4rem 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88rem; line-height: 1.85; overflow-x: auto; box-shadow: var(--shadow-lg);
}
.code .c { color: #8f8f88; }
.code .g { color: var(--lime); }

/* ── deploy ────────────────────────────────────────────────────────────── */

.deploy-grid { display: grid; gap: 1.15rem; }
@media (min-width: 860px) { .deploy-grid { grid-template-columns: repeat(3, 1fr); } }
.dcard { padding: 1.6rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--mist); }
.dcard .k { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.dcard .v { font-size: 1.12rem; font-weight: 800; margin-top: .45rem; letter-spacing: -.02em; }
.dcard p { font-size: .93rem; color: var(--stone); margin-top: .5rem; }

/* ── final cta ─────────────────────────────────────────────────────────── */

.cta {
  background: var(--ink); color: #fff; border-radius: clamp(20px, 3vw, 34px);
  padding: clamp(2.8rem, 6vw, 4.6rem); text-align: center; position: relative; overflow: hidden;
}
.cta h2 { color: #fff; max-width: 22ch; margin: 0 auto; }
.cta .lead { color: rgba(255,255,255,.7); max-width: 40ch; margin: 1.2rem auto 0; }
.cta .row { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2.1rem; }
.cta .fine { margin-top: 1.5rem; font-size: .88rem; color: rgba(255,255,255,.5); }
.cta .halo {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,242,78,.24), transparent 62%);
  top: -320px; left: 50%; transform: translateX(-50%); pointer-events: none;
}

/* ── footer ────────────────────────────────────────────────────────────── */

.site-foot { padding: 3.2rem 0 2.6rem; border-top: 1px solid var(--mist); }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 780px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.foot-grid h4 { margin: 0 0 .85rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); font-weight: 800; }
.foot-links { display: grid; gap: .6rem; }
.foot-links a { text-decoration: none; font-size: .95rem; color: var(--stone); transition: color .2s ease; width: fit-content; }
.foot-links a:hover { color: var(--ink); }
.foot-bottom {
  margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid var(--mist);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between;
  font-size: .88rem; color: var(--stone);
}

/* ── scroll reveal (JS adds .in) ───────────────────────────────────────── */

.rv { opacity: 0; transform: translateY(22px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .rv, .rv.in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .live i { animation: none; }
  .btn:hover, .card:hover, .repo-pill:hover, .chip-t:hover { transform: none; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }


/* ── overflow guards ───────────────────────────────────────────────────────
 * Grid items default to min-width:auto, so a wide child — the install snippet
 * — sizes its column by its own content and pushes the page sideways on a
 * phone. The <pre> already scrolls on its own; the column just has to be
 * allowed to be narrower than it.
 */
.split > *, .cards > *, .steps > *, .deploy-grid > *,
.hero-grid > *, .foot-grid > *, .proof-row > * { min-width: 0; }

.code { max-width: 100%; }

/* Decorative only, and positioned outside their box on purpose. */
.viz { isolation: isolate; }
@media (max-width: 640px) {
  .blob-a { width: 210px; height: 210px; top: -40px; right: -20px; }
  .blob-b { display: none; }
}


/* Line icons in the feature cards — sized and coloured from the card itself. */
.glyph svg { width: 21px; height: 21px; display: block; color: var(--ink); }
.card:hover .glyph { background: var(--lime); border-color: var(--lime-deep); }
.card:hover .glyph svg { color: var(--lime-ink); }
.glyph { transition: background .25s ease, border-color .25s ease; }


/* ── oversized wordmark above the footer ───────────────────────────────────
 * Full-bleed dark band that closes the page. The wordmark is traced vector,
 * so it stays crisp at display size; currentColor flips it to white here.
 */
.bigmark {
  position: relative;
  overflow: hidden;
  background: #0c0c0c;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.25rem, 2.5vw, 2.5rem);
  isolation: isolate;
}
.bigmark-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--gut);
  display: flex;
  justify-content: center;
}
.bigmark-svg {
  width: 100%;
  max-width: 1500px;
  height: auto;
  color: #fff;
  display: block;
  /* The traced artwork carries its own padding inside the viewBox, so the
   * mark already sits off the footer edge without a negative margin — which
   * was clipping the wedge's bottom corner. */
  margin-bottom: 0;
}

/* Ambient colour behind the mark, so the band is not a flat black rectangle. */
.bigmark-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .85;
  z-index: 1;
  pointer-events: none;
}
.bigmark-glow-a {
  width: 46vw; height: 46vw; max-width: 640px; max-height: 640px;
  top: -14%; left: 8%;
  background: radial-gradient(circle, rgba(198,242,78,.55), transparent 70%);
}
.bigmark-glow-b {
  width: 52vw; height: 52vw; max-width: 720px; max-height: 720px;
  bottom: -26%; right: 4%;
  background: radial-gradient(circle, rgba(120,110,255,.55), transparent 70%);
}

@media (max-width: 640px) {
  .bigmark-glow { filter: blur(58px); }
}


/* ── header over the dark wordmark band ────────────────────────────────────
 * The band is full-bleed dark and the header is sticky, so at the bottom of
 * the page the header lands on the letterforms. Padding cannot fix it — the
 * overlap sits at a fixed offset from the band's bottom edge — so retract the
 * header instead. The footer directly below carries the same navigation.
 */
.site-head.on-dark {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.site-head {
  transition: border-color .3s ease, background .3s ease,
              transform .35s var(--ease), opacity .35s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .site-head { transition: none; }
}
