/*
 * custom.css — YOUR hand-written styles. Loaded AFTER tailwind.css.
 *
 * tailwind.css is a compiled file: it only contains the Tailwind classes that
 * were used when the site was converted. If you need a style that no existing
 * class gives you, add a normal CSS rule here (or see README → "Adding new
 * Tailwind classes").
 */

/* Contact form inputs (was an inline <style> in the React page) */
.input-base {
  width: 100%;
  border: 1px solid #e5e5e5;
  padding: .65rem .75rem;
  font-size: .875rem;
  background: #fafafa;
  outline: none;
  transition: border-color .15s, background .15s;
}
.input-base:focus { border-color: #dc2626; background: #fff; }
select.input-base { background: #fff; }


/* ── Sticky nav (slides down once the main header scrolls away) ───────────
 * Built by /assets/js/sticky-nav.js. It clones the dark link bar so the
 * original header never shifts. --sticky-nav-h is set on <html> by the JS
 * while the bar is visible, so other sticky elements can sit below it.
 */
.sticky-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1.5rem;
  background: #171717;
  color: #fff;
  border-bottom: 2px solid #dc2626;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .25s ease, visibility 0s linear .35s;
}
.sticky-nav.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.sticky-nav__logo {
  display: none;
  align-items: baseline;
  gap: .4rem;
  flex-shrink: 0;
}
.sticky-nav__logo b { color: #dc2626; font-size: 1.5rem; font-weight: 900; font-style: italic; letter-spacing: -.05em; line-height: 1; }
.sticky-nav__logo i { background: #fff; color: #000; font-size: .6rem; font-weight: 700; padding: .15rem .4rem; }
.sticky-nav nav { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sticky-nav nav::-webkit-scrollbar { display: none; }
.sticky-nav nav ul { flex-wrap: nowrap; justify-content: flex-start; white-space: nowrap; padding-left: 0; padding-right: 0; }
.sticky-nav nav li { opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; }
.sticky-nav.is-visible nav li { opacity: 1; transform: none; }
.sticky-nav.is-visible nav li:nth-child(1) { transition-delay: .08s; }
.sticky-nav.is-visible nav li:nth-child(2) { transition-delay: .12s; }
.sticky-nav.is-visible nav li:nth-child(3) { transition-delay: .16s; }
.sticky-nav.is-visible nav li:nth-child(4) { transition-delay: .20s; }
.sticky-nav.is-visible nav li:nth-child(5) { transition-delay: .24s; }
.sticky-nav.is-visible nav li:nth-child(n+6) { transition-delay: .28s; }
.sticky-nav__actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.sticky-nav__hire {
  background: #dc2626; color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; padding: .5rem .9rem; transition: background .15s;
}
.sticky-nav__hire:hover { background: #b91c1c; }
@media (min-width: 1024px) {
  .sticky-nav { padding: 0 3rem; }
  .sticky-nav__logo { display: inline-flex; }
}

/* Anchor jumps shouldn't land underneath the sticky bar */
html { scroll-padding-top: 4rem; }

/* Marketplace's own sticky filter bar sits just below the sticky nav */
.sticky.top-0 { transition: top .35s cubic-bezier(.22, 1, .36, 1); }
html.has-sticky-nav .sticky.top-0 { top: var(--sticky-nav-h, 0px); }

@media (prefers-reduced-motion: reduce) {
  .sticky-nav, .sticky-nav nav li, .sticky.top-0 { transition: none !important; }
}


/* ── Systems: cards, buttons, badges (home + /systems/<slug>/) ───────────── */
.sys-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; font-size: 11px; font-weight: 700; letter-spacing: .15em;
  line-height: 1; white-space: nowrap; border: 2px solid #dc2626; color: #fff;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.sys-btn--solid { background: #dc2626; }
.sys-btn--solid:hover { background: #b91c1c; border-color: #b91c1c; }
.sys-btn--outline { background: transparent; }
.sys-btn--outline:hover { background: #dc2626; }

.sys-more {
  font-size: 11px; font-weight: 700; letter-spacing: .15em; color: #e5e5e5;
  border-bottom: 2px solid transparent; padding-bottom: .15rem; transition: color .15s, border-color .15s;
}
.sys-more:hover { color: #ef4444; border-color: #ef4444; }

.sys-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .12em;
  padding: .25rem .5rem; color: #fff;
}
.sys-badge--live { background: #059669; }
.sys-badge--demo { background: rgba(0, 0, 0, .7); border: 1px solid #525252; }

.sys-demo-note {
  border-left: 2px solid #dc2626; background: #fef2f2; color: #991b1b;
  font-size: 12px; font-weight: 600; padding: .6rem .75rem;
}
.sys-demo-note.hidden { display: none; }
.sys-card.hidden { display: none; }

/* ── Utilities the compiled tailwind.css doesn't include (used by the systems UI) ── */
.aspect-\[16\/9\] { aspect-ratio: 16/9; }
.gap-8 { gap: 2rem; }
.gap-y-3 { row-gap: .75rem; }
.leading-snug { line-height: 1.375; }
.pt-7 { padding-top: 1.75rem; }
.py-14 { padding-block: 3.5rem; }
.space-y-6 > :not(:last-child) { margin-bottom: 1.5rem; }
@media (min-width: 48rem) {
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
}
@media (min-width: 64rem) {
  .lg\:gap-16 { gap: 4rem; }
  .lg\:py-24 { padding-block: 6rem; }
  .lg\:grid-cols-\[1\.1fr_1fr\] { grid-template-columns: 1.1fr 1fr; }
  .lg\:grid-cols-\[1\.6fr_1fr\] { grid-template-columns: 1.6fr 1fr; }
  .lg\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .lg\:text-\[15px\] { font-size: 15px; }
}


/* ── Hero call-to-action card (admin → Hero cards) ───────────────────────────
 * Phones/tablets: the card overlaps the bottom edge of the hero picture, so it
 * is visible without scrolling.
 * Desktop (≥1024px): a white card floating on the right of the hero.
 */
.hero-promo-wrap { position: relative; z-index: 5; margin-top: -7rem; padding: 0 1rem 1.25rem; }
.hero-promo {
  position: relative; max-width: 28rem; margin: 0 auto;
  background: #fff; color: #171717; border-top: 4px solid #dc2626;
  padding: 1.25rem 1.5rem 1.25rem;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
.hero-promo__slide[hidden] { display: none; }
.hero-promo__close {
  position: absolute; top: .35rem; right: .45rem; width: 2rem; height: 2rem;
  font-size: 1.4rem; line-height: 1; color: #737373; background: none; border: 0; cursor: pointer;
}
.hero-promo__close:hover { color: #dc2626; }
.hero-promo__badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: 10px; font-weight: 800; letter-spacing: .18em; color: #dc2626;
}
.hero-promo__dot { width: .5rem; height: .5rem; border-radius: 50%; background: #dc2626; animation: promo-pulse 2s ease-out infinite; }
.hero-promo--follow .hero-promo__dot, .hero-promo--try .hero-promo__dot { background: #059669; }
.hero-promo--follow .hero-promo__badge, .hero-promo--try .hero-promo__badge { color: #047857; }
.hero-promo--notice .hero-promo__badge { color: #b45309; }
.hero-promo--notice .hero-promo__dot { background: #d97706; }
.hero-promo__title { margin-top: .6rem; padding-right: 1.25rem; font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.hero-promo__msg { margin-top: .45rem; font-size: .85rem; line-height: 1.5; color: #525252; }
.hero-promo__btn {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem;
  background: #dc2626; color: #fff; padding: .7rem 1.1rem;
  font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1; transition: background .15s;
}
.hero-promo__btn:hover { background: #b91c1c; }
.hero-promo__dots { display: flex; gap: .4rem; margin-top: 1rem; }
.hero-promo__dotbtn { width: 1.4rem; height: 4px; background: #d4d4d4; border: 0; padding: 0; cursor: pointer; }
.hero-promo__dotbtn.is-active { background: #dc2626; }
.hero-promo__dotbtn:focus-visible, .hero-promo__btn:focus-visible, .hero-promo__close:focus-visible,
.feat-btn:focus-visible, .feat-link:focus-visible { outline: 2px solid #dc2626; outline-offset: 2px; }

@keyframes promo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .5); }
  70%, 100% { box-shadow: 0 0 0 .55rem rgba(220, 38, 38, 0); }
}
@keyframes promo-in { from { opacity: 0; transform: translateX(1.5rem); } to { opacity: 1; transform: none; } }

@media (min-width: 64rem) {
  .hero-promo-wrap {
    position: absolute; top: 0; right: 0; height: 78vh; z-index: 5; margin-top: 0;
    display: flex; align-items: center; padding: 0 3rem 0 0; background: none; pointer-events: none;
  }
  .hero-promo { width: 19.5rem; margin: 0; pointer-events: auto; animation: promo-in .6s cubic-bezier(.22, 1, .36, 1) .5s backwards; }
}


/* ── Featured section (admin → Featured items) ───────────────────────────── */
.feat { background: #f5f5f5; padding: 4.5rem 1.5rem; }
.feat__inner { max-width: 80rem; margin: 0 auto; }
.feat__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.25rem; }
.feat__eyebrow { color: #dc2626; font-size: 12px; font-weight: 700; letter-spacing: .4em; }
.feat__h { margin-top: .5rem; font-size: 2rem; font-weight: 300; letter-spacing: .06em; color: #171717; line-height: 1.15; }
.feat__sub { margin-top: .75rem; max-width: 34rem; font-size: .9rem; line-height: 1.6; color: #525252; }
.feat__ask { font-size: 11px; font-weight: 700; letter-spacing: .15em; color: #171717; border-bottom: 2px solid #dc2626; padding-bottom: .2rem; }
.feat__ask:hover { color: #dc2626; }

.feat__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.feat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e5e5e5; border-bottom: 3px solid transparent; transition: border-color .2s, box-shadow .2s; }
.feat-card:hover { border-bottom-color: #dc2626; box-shadow: 0 18px 32px -24px rgba(0, 0, 0, .45); }
.feat-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #262626; }
.feat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.feat-card:hover .feat-card__media img { transform: scale(1.04); }
.feat-card__badge { position: absolute; top: .75rem; left: .75rem; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .14em; padding: .3rem .6rem; }
.feat-card__kind { position: absolute; bottom: .75rem; left: .75rem; background: rgba(0, 0, 0, .72); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .1em; padding: .25rem .55rem; }
.feat-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem 1.5rem 1.5rem; }
.feat-card__title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: #171717; }
.feat-card__tag { margin-top: .4rem; font-size: .95rem; font-weight: 600; line-height: 1.4; color: #dc2626; }
.feat-card__desc { margin-top: .75rem; font-size: .875rem; line-height: 1.6; color: #525252; }
.feat-card__foot { margin-top: auto; padding-top: 1.4rem; }
.feat-card__price { margin-bottom: .9rem; font-size: 1.15rem; font-weight: 700; color: #171717; }
.feat-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem; }
.feat-btn {
  display: inline-flex; align-items: center; gap: .4rem; background: #dc2626; color: #fff;
  padding: .8rem 1.3rem; font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1; transition: background .15s;
}
.feat-btn:hover { background: #b91c1c; }
.feat-link { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: #171717; border-bottom: 2px solid transparent; padding-bottom: .15rem; transition: color .15s, border-color .15s; }
.feat-link:hover { color: #dc2626; border-color: #dc2626; }

@media (min-width: 40rem) {
  .feat__grid { grid-template-columns: repeat(2, 1fr); }
  .feat-card--lead { grid-column: 1 / -1; }
  .feat__grid--one { grid-template-columns: minmax(0, 40rem); }
}
@media (min-width: 64rem) {
  .feat { padding: 6rem 4rem; }
  .feat__h { font-size: 2.75rem; }
  .feat__grid { grid-template-columns: repeat(3, 1fr); }
  .feat-card--lead { grid-column: span 2; flex-direction: row; }
  .feat-card--lead .feat-card__media { flex: 1.15; aspect-ratio: auto; min-height: 20rem; }
  .feat-card--lead .feat-card__body { flex: 1; padding: 2rem; justify-content: center; }
  .feat-card--lead .feat-card__title { font-size: 1.6rem; }
  .feat-card--lead .feat-card__foot { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-promo, .hero-promo__dot { animation: none !important; }
  .feat-card, .feat-card__media img { transition: none !important; }
}


/* ── WhatsApp contact links ─────────────────────────────────────────────── */
.wa-label { background: #059669; }
.wa-link:hover { color: #047857; }
.wa-foot { color: #34d399; transition: color .15s; }
.wa-foot:hover { color: #6ee7b7; }

/* Angled divider under Featured: match the section's grey */
.feat-divider { background: #f5f5f5; }


/* ── Hero scroll arrow ───────────────────────────────────────────────────── */
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.75rem; z-index: 6;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  color: #fff; transform: translateX(-50%);
  transition: opacity .3s ease, visibility 0s linear 0s;
}
.hero-scroll.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, visibility 0s linear .3s; }
.hero-scroll__text { font-size: 10px; font-weight: 700; letter-spacing: .3em; padding-left: .3em; opacity: .85; }
.hero-scroll__ring {
  display: flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%;
  background: rgba(0, 0, 0, .25); transition: background .2s, border-color .2s;
  animation: hero-bob 2s ease-in-out infinite;
}
.hero-scroll:hover .hero-scroll__ring, .hero-scroll:focus-visible .hero-scroll__ring { background: #dc2626; border-color: #dc2626; }
.hero-scroll:focus-visible { outline: 2px solid #fff; outline-offset: 6px; }
@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(.45rem); } }

/* Phones: the hero card overlaps the bottom of the picture, so lift the arrow above it */
.has-promo .hero-scroll { bottom: 8.5rem; }
@media (max-width: 40rem) { .hero-scroll__text { display: none; } }
@media (min-width: 64rem) { .has-promo .hero-scroll { bottom: 1.75rem; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll__ring { animation: none; } }


/* ── Section dots (right-hand "radio button" rail on the home page) ───────── */
.dots {
  position: fixed; right: 1.1rem; top: 50%; z-index: 45; display: none;
  transform: translate(.75rem, -50%); opacity: 0; visibility: hidden;
  transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .35s;
}
.dots.is-shown { opacity: 1; visibility: visible; transform: translate(0, -50%); transition-delay: 0s; }
.dots ol { list-style: none; margin: 0; padding: .6rem .45rem; display: flex; flex-direction: column; gap: .15rem;
  background: rgba(23, 23, 23, .82); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dots__dot { position: relative; display: flex; align-items: center; justify-content: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; }
.dots__dot::before {
  content: ""; width: .6rem; height: .6rem; border-radius: 50%;
  border: 2px solid #8a8a8a; background: transparent;
  transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.dots__dot:hover::before, .dots__dot:focus-visible::before { border-color: #fff; transform: scale(1.2); }
.dots__dot.is-active::before {
  background: #ef4444; border-color: #ef4444; transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .28), 0 0 12px 2px rgba(239, 68, 68, .85);   /* the red "light" */
}
.dots__dot:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.dots__label {
  position: absolute; right: 100%; top: 50%; margin-right: .7rem; transform: translate(.4rem, -50%);
  background: #171717; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .14em; white-space: nowrap;
  padding: .35rem .6rem; border-left: 2px solid #dc2626; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.dots__dot:hover .dots__label, .dots__dot:focus-visible .dots__label { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 64rem) { .dots { display: block; } }
@media (prefers-reduced-motion: reduce) { .dots, .dots__dot::before, .dots__label { transition: none !important; } }


/* ── Systems grid: three even, compact cards per row ─────────────────────── */
.sys-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 40rem) { .sys-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .sys-grid { grid-template-columns: repeat(3, 1fr); } }

.sys-card {
  display: flex; flex-direction: column; background: #0d0d0d;
  border: 1px solid #262626; border-top: 3px solid #262626;
  transition: border-color .2s, transform .25s, box-shadow .25s;
}
.sys-card:hover { border-color: #3f3f3f; border-top-color: #dc2626; transform: translateY(-4px); box-shadow: 0 22px 36px -26px rgba(220, 38, 38, .55); }
.sys-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #171717; }
.sys-card__media a { display: block; height: 100%; }
.sys-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.sys-card:hover .sys-card__media img { transform: scale(1.04); }
.sys-card__media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(13, 13, 13, .85), transparent); pointer-events: none; }
.sys-card__tag { position: absolute; top: .7rem; left: .7rem; z-index: 2; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .14em; padding: .25rem .55rem; }
.sys-card__media .sys-badge { position: absolute; top: .7rem; right: .7rem; z-index: 2; }
.sys-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.2rem 1.3rem 1.3rem; }
.sys-card__title { font-size: 1.1rem; font-weight: 600; line-height: 1.25; color: #fff; }
.sys-card__pitch { margin-top: .4rem; font-size: .82rem; font-weight: 600; line-height: 1.4; color: #ef4444; }
.sys-card__desc { margin-top: .6rem; font-size: .84rem; line-height: 1.6; color: #a3a3a3; }
.sys-card__pitch, .sys-card__desc { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.sys-card__pitch { -webkit-line-clamp: 2; line-clamp: 2; }
.sys-card__desc { -webkit-line-clamp: 3; line-clamp: 3; }
.sys-card__foot { margin-top: auto; padding-top: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.2rem; }
.sys-btn--sm { padding: .7rem 1.05rem; letter-spacing: .12em; }
.sys-card__foot::before { content: ""; flex-basis: 100%; height: 1px; background: #262626; margin-bottom: .4rem; }

/* ── Featured: three cards sit in one even row (no orphan on a second row) ── */
@media (min-width: 64rem) {
  .feat__grid:has(> :nth-child(3)) .feat-card--lead { grid-column: auto; flex-direction: column; }
  .feat__grid:has(> :nth-child(3)) .feat-card--lead .feat-card__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .feat__grid:has(> :nth-child(3)) .feat-card--lead .feat-card__body { padding: 1.4rem 1.5rem 1.5rem; justify-content: flex-start; }
  .feat__grid:has(> :nth-child(3)) .feat-card--lead .feat-card__title { font-size: 1.25rem; }
  .feat__grid:has(> :nth-child(3)) .feat-card--lead .feat-card__foot { margin-top: auto; }
}

/* ── Section numerals: a ghost index behind each home-page section ───────── */
section[data-n] { position: relative; overflow: hidden; }
section[data-n]::before {
  content: attr(data-n); position: absolute; top: .5rem; right: 1.5rem; z-index: 0;
  font-size: clamp(6rem, 14vw, 11rem); font-weight: 800; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px currentColor; opacity: .07; pointer-events: none;
}
section[data-n] > * { position: relative; z-index: 1; }
@media (max-width: 40rem) { section[data-n]::before { font-size: 5rem; right: 1rem; } }
