/* ============================================================================
   WebTemplates — Marketplace UI
   ----------------------------------------------------------------------------
   Design tokens live at the top. Change --brand and the whole site re-skins.
   ========================================================================== */

:root {
  /* ---- Brand ---- */
  --brand:        #5b5bf5;
  --brand-deep:   #4341e0;
  --brand-glow:   #8b5cf6;
  --brand-soft:   rgba(91, 91, 245, 0.10);
  --brand-line:   rgba(91, 91, 245, 0.22);

  /* ---- Neutrals ---- */
  --ink:          #0b0d14;   /* headings, dark sections */
  --ink-2:        #151926;
  --body:         #4b5266;   /* body text */
  --muted:        #79809a;   /* tertiary text */
  --paper:        #ffffff;
  --paper-2:      #f7f8fc;
  --paper-3:      #eff1f8;
  --line:         rgba(11, 13, 20, 0.09);
  --line-soft:    rgba(11, 13, 20, 0.055);
  --line-dark:    rgba(255, 255, 255, 0.11);

  /* ---- Accents ---- */
  --gold:         #e0a33c;
  --green:        #16a06a;

  /* ---- Type ---- */
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* ---- Rhythm ---- */
  --shell: 1240px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 8vw, 7.5rem);

  /* ---- Radii & shadow ---- */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(11,13,20,.05), 0 4px 14px rgba(11,13,20,.05);
  --shadow-md: 0 2px 6px rgba(11,13,20,.05), 0 14px 40px rgba(11,13,20,.09);
  --shadow-lg: 0 30px 80px rgba(11,13,20,.16);
  --shadow-brand: 0 10px 30px rgba(91,91,245,.30);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; letter-spacing: -.022em; font-weight: 800; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.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-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--brand); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 10px 10px; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 0; }

section[id], main[id] { scroll-margin-top: 92px; }

.shell {
  width: 100%; max-width: var(--shell);
  margin-inline: auto; padding-inline: var(--gutter);
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem;
  font-size: .92rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2;
  border-radius: 100px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .2s var(--ease), border-color .2s var(--ease), color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--brand); --btn-fg: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { --btn-bg: var(--brand-deep); box-shadow: 0 14px 34px rgba(91,91,245,.38); }

.btn--ghost { --btn-fg: var(--ink); --btn-bd: var(--line); background: var(--paper); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { --btn-bd: rgba(11,13,20,.2); box-shadow: var(--shadow-md); }

.btn--glass {
  --btn-fg: #fff; --btn-bd: rgba(255,255,255,.28);
  background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255,255,255,.14); --btn-bd: rgba(255,255,255,.45); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); box-shadow: 0 12px 34px rgba(0,0,0,.24); }
.btn--light:hover { box-shadow: 0 18px 44px rgba(0,0,0,.3); }

.btn--wa {
  --btn-bg: #25d366; --btn-fg: #06251a;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .32);
}
.btn--wa:hover { --btn-bg: #1fbe5b; box-shadow: 0 14px 32px rgba(37, 211, 102, .42); }
.btn--wa svg { width: 19px; height: 19px; flex: none; }

.btn--sm  { padding: .52rem 1rem; font-size: .855rem; }
.btn--lg  { padding: .95rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============================================================== HEADER === */
.site-header {
  position: sticky; top: 0; z-index: 90;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 20px rgba(11,13,20,.05);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -.03em; }
.brand__mark {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; color: #fff;
  background: linear-gradient(140deg, var(--brand), var(--brand-glow));
  box-shadow: 0 6px 16px rgba(91,91,245,.35);
  flex: none;
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__name { font-size: 1.08rem; color: #fff; transition: color .3s; }
.brand__name b { font-weight: 800; }
.site-header.is-stuck .brand__name { color: var(--ink); }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  position: relative; padding: .5rem .8rem; border-radius: 8px;
  font-size: .92rem; font-weight: 600; color: rgba(255,255,255,.78);
  transition: color .22s, background-color .22s;
}
.nav__link:hover { color: #fff; background: rgba(255,255,255,.09); }
.site-header.is-stuck .nav__link { color: var(--body); }
.site-header.is-stuck .nav__link:hover { color: var(--ink); background: var(--paper-3); }
.nav__cta { margin-left: .5rem; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  border: 1px solid rgba(255,255,255,.2);
}
.nav-toggle span {
  width: 18px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform .3s var(--ease), opacity .2s;
}
.site-header.is-stuck .nav-toggle { border-color: var(--line); }
.site-header.is-stuck .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================ HERO === */
.hero {
  position: relative; isolation: isolate;
  background: var(--ink);
  color: #fff;
  margin-top: -74px; padding-top: 74px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb--1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #4f46e5; }
.orb--2 { width: 40vw; height: 40vw; right: -10vw; top: -8vw; background: #7c3aed; opacity: .42; }
.orb--3 { width: 44vw; height: 34vw; right: 8vw; bottom: -18vw; background: #0ea5e9; opacity: .26; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 78%);
}

.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .85rem .38rem .6rem; border-radius: 100px;
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.2);
  animation: pulse 2.4s var(--ease-io) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } }

.hero__title {
  margin-top: 1.3rem;
  font-size: clamp(2.35rem, 5.4vw, 4.05rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
  color: #fff;
}
.hero__title em {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, #c7d2fe, #a78bfa 55%, #7dd3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.hero__sub {
  margin-top: 1.15rem; max-width: 34rem;
  font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.6;
  color: rgba(255,255,255,.72);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  margin-top: 1.7rem; font-size: .84rem; font-weight: 600;
  color: rgba(255,255,255,.55);
}
.hero__trust i { color: rgba(255,255,255,.28); font-style: normal; }

/* ---- floating preview stack ---- */
.hero__stage { position: relative; min-height: clamp(300px, 38vw, 440px); }
.stage-card {
  position: absolute; border-radius: 16px; overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px rgba(0,0,0,.5);
  transition: transform .6s var(--ease);
}
.stage-card--back  { width: 62%; left: 0;    top: 4%;  transform: rotate(-7deg) translateZ(0); opacity: .78; }
.stage-card--mid   { width: 66%; right: 2%;  top: 0;   transform: rotate(6deg); opacity: .9; }
.stage-card--front { width: 78%; left: 11%;  bottom: 4%; z-index: 2; animation: float 7s var(--ease-io) infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }

.stage-chip {
  position: absolute; z-index: 3; pointer-events: none;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .85rem; border-radius: 12px;
  background: rgba(255,255,255,.94);
  color: var(--ink); font-size: .78rem; font-weight: 700;
  box-shadow: 0 16px 40px rgba(0,0,0,.34);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.stage-chip--a { left: -2%; bottom: 22%; flex-direction: column; align-items: flex-start; gap: 0; }
.stage-chip--a .was {
  font-style: normal; font-size: .72rem; font-weight: 600; color: var(--muted);
  text-decoration: line-through; text-decoration-color: rgba(239,68,68,.55);
}
.stage-chip--a b { font-size: 1.15rem; letter-spacing: -.02em; }
.stage-chip--a s { text-decoration: none; font-size: .66rem; font-weight: 700; color: var(--green); }
.stage-chip--b { right: -1%; top: 12%; }
.stage-chip .tick {
  width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-size: .6rem; font-style: normal;
}

/* ---- marquee ---- */
.hero__marquee {
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.02);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; align-items: center; gap: 2.6rem;
  padding-block: .95rem; width: max-content;
  animation: slide 38s linear infinite;
}
.hero__marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.42); white-space: nowrap;
}
.marquee__item i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ============================================================ SECTIONS === */
.section { padding-block: var(--section-y); }
.section--templates { background: var(--paper); }
.section--how { background: var(--paper-2); border-block: 1px solid var(--line-soft); }
.section--cats { background: var(--paper); }

.sec-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-tag {
  display: inline-block; margin-bottom: .9rem;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.sec-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.032em; }
.sec-sub { margin-top: .9rem; font-size: 1.03rem; color: var(--body); }

/* ------------------------------------------------------------- toolbar -- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.1rem;
  max-width: 100%;
}
.toolbar > * { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  padding: .5rem 1rem; border-radius: 100px;
  font-size: .875rem; font-weight: 600; color: var(--body);
  background: var(--paper-2); border: 1px solid var(--line-soft);
  transition: all .22s var(--ease);
}
.chip:hover { color: var(--ink); border-color: var(--line); transform: translateY(-1px); }
.chip.is-active {
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: 0 6px 18px rgba(11,13,20,.2);
}
.chip__count {
  display: inline-block; margin-left: .4rem; padding: 0 .35rem;
  border-radius: 20px; font-size: .72rem; font-weight: 700;
  background: rgba(11,13,20,.07); color: var(--muted);
}
.chip.is-active .chip__count { background: rgba(255,255,255,.18); color: rgba(255,255,255,.85); }

.search { position: relative; flex: 1 1 240px; max-width: 320px; }
.search__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--muted); pointer-events: none;
}
.search__input {
  width: 100%; padding: .68rem 2.4rem .68rem 2.55rem;
  border-radius: 100px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink);
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.search__input::placeholder { color: var(--muted); }
.search__input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.search__input::-webkit-search-cancel-button { display: none; }
.search__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; font-size: 1.15rem; line-height: 1;
  color: var(--muted); display: grid; place-items: center;
}
.search__clear:hover { background: var(--paper-3); color: var(--ink); }

.result-count { font-size: .875rem; color: var(--muted); margin-bottom: 1.6rem; }
.result-count b { color: var(--ink); font-weight: 700; }

/* ---------------------------------------------------------------- grid -- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: clamp(1.1rem, 2vw, 1.75rem);
}

.card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .3s;
  animation: cardIn .5s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.card__media {
  position: relative;
  padding: 1.05rem 1.05rem 0;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--tint, rgba(91,91,245,.14)), transparent 70%),
    var(--paper-2);
  border-bottom: 1px solid var(--line-soft);
}
.card__shot {
  border-radius: 12px 12px 0 0; overflow: hidden;
  box-shadow: 0 -1px 0 rgba(11,13,20,.06), 0 18px 34px -14px rgba(11,13,20,.3);
  transform: translateY(0);
  transition: transform .45s var(--ease);
}
.card:hover .card__shot { transform: translateY(-6px); }

.card__badge {
  display: inline-block; vertical-align: middle;
  margin-left: .5rem; transform: translateY(-2px);
  padding: .2rem .5rem; border-radius: 100px;
  font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; box-shadow: 0 3px 10px rgba(11,13,20,.18);
}
.card__badge.is-popular { background: linear-gradient(120deg, #f59e0b, #ef4444); }
.card__badge.is-new     { background: linear-gradient(120deg, #10b981, #059669); }

.card__quick {
  position: absolute; inset: 1.05rem 1.05rem 0; padding: 0; border: 0; width: auto;
  display: grid; place-items: center; gap: .6rem;
  grid-auto-flow: column;
  background: linear-gradient(180deg, rgba(11,13,20,.35), rgba(11,13,20,.72));
  opacity: 0; transition: opacity .3s var(--ease);
  border-radius: 12px 12px 0 0;
}
.card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; }
@media (hover: none) { .card__quick { display: none; } }

.card__body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card__name { font-size: 1.22rem; letter-spacing: -.025em; }
.card__cat {
  display: inline-block; margin-top: .3rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  color: var(--brand);
}
/* Regular price, struck through — used on cards, in the modal and under the grid. */
.price-was {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(239, 68, 68, .55);
  color: var(--muted); font-weight: 600;
}
.price-flag {
  display: inline-block; vertical-align: middle;
  padding: .16rem .5rem; border-radius: 100px;
  font-size: .66rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; background: linear-gradient(120deg, #f59e0b, #ef4444);
}

.card__price { text-align: right; flex: none; line-height: 1.25; }
.card__price .price-was { display: block; font-size: .8rem; }
.card__price b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.card__price s { display: block; text-decoration: none; font-size: .68rem; font-weight: 700; color: var(--green); letter-spacing: .02em; }
.card__desc { margin-top: .8rem; font-size: .92rem; line-height: 1.62; color: var(--body); flex: 1; }
.card__actions { display: flex; gap: .6rem; margin-top: 1.25rem; }
.card__actions .btn { flex: 1; padding-inline: .8rem; }

/* skeletons */
.skeleton { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-soft); background: var(--paper); }
.sk-media { aspect-ratio: 16 / 11; }
.sk-line { height: 12px; border-radius: 6px; margin: 0 1.4rem 0.7rem; }
.sk-line:first-of-type { margin-top: 1.4rem; width: 55%; height: 16px; }
.sk-line.w40 { width: 40%; }
.sk-line.w80 { width: 80%; }
.sk-line.last { margin-bottom: 1.6rem; width: 65%; }
.sk-media, .sk-line {
  background: linear-gradient(100deg, var(--paper-3) 30%, #f9fafe 50%, var(--paper-3) 70%);
  background-size: 250% 100%;
  animation: shimmer 1.35s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

/* --------------------------------------------------------- empty state -- */
.empty {
  text-align: center; padding: clamp(3rem, 7vw, 5rem) 1.5rem;
  border: 1px dashed var(--line); border-radius: var(--r-xl);
  background: var(--paper-2);
  animation: cardIn .4s var(--ease) both;
}
.empty__icon {
  width: 58px; height: 58px; margin: 0 auto 1.2rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--paper); color: var(--muted);
  border: 1px solid var(--line);
}
.empty__icon svg { width: 26px; height: 26px; }
.empty h3 { font-size: 1.3rem; }
.empty p { margin-top: .6rem; max-width: 30rem; margin-inline: auto; font-size: .95rem; }
.empty__actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; margin-top: 1.6rem; }

.grid-note {
  margin-top: 2.4rem; padding: 1.05rem 1.3rem;
  border-radius: var(--r-md); border: 1px solid var(--brand-line);
  background: var(--brand-soft);
  font-size: .92rem; color: var(--body); text-align: center;
}
.grid-note b { color: var(--ink); font-weight: 800; font-size: 1.02rem; }
.grid-note .price-was { margin-inline: .1rem .35rem; }

/* ------------------------------------------------------------ how works -- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.1rem, 2.4vw, 2rem);
  counter-reset: step;
}
.step {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step__num {
  display: block; font-size: 2.1rem; font-weight: 800; letter-spacing: -.05em;
  background: linear-gradient(140deg, var(--brand), var(--brand-glow));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step__title { margin-top: .55rem; font-size: 1.2rem; }
.step__text { margin-top: .55rem; font-size: .95rem; }

/* ------------------------------------------------------------ category -- */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(.85rem, 1.6vw, 1.15rem);
}
.cat-card {
  position: relative; overflow: hidden; text-align: left;
  padding: 1.4rem 1.3rem;
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.cat-card::after {
  content: ""; position: absolute; inset: auto -30% -60% auto;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--brand-soft); opacity: 0;
  transition: opacity .35s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-line); }
.cat-card:hover::after { opacity: 1; }
.cat-card__ico {
  position: relative; z-index: 1;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; margin-bottom: .95rem;
  background: var(--brand-soft); color: var(--brand);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.cat-card:hover .cat-card__ico {
  background: linear-gradient(140deg, var(--brand), var(--brand-glow)); color: #fff;
  transform: scale(1.06) rotate(-4deg);
}
.cat-card__ico svg { width: 21px; height: 21px; }
.cat-card h3 { position: relative; z-index: 1; font-size: 1.05rem; }
.cat-card p { position: relative; z-index: 1; margin-top: .35rem; font-size: .86rem; line-height: 1.55; }
.cat-card__n {
  position: relative; z-index: 1;
  display: inline-block; margin-top: .85rem;
  font-size: .78rem; font-weight: 700; color: var(--brand);
}

/* ----------------------------------------------------------------- CTA -- */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding-block: clamp(4rem, 8vw, 6.5rem);
  text-align: center;
}
.cta-band__glow {
  pointer-events: none;
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(900px, 110%); aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse at center, rgba(124,58,237,.55), transparent 62%);
  filter: blur(40px);
}
.cta-band__inner { position: relative; }
.cta-band__title { font-size: clamp(1.9rem, 4.2vw, 3rem); color: #fff; letter-spacing: -.035em; }
.cta-band__text {
  margin: 1rem auto 2rem; max-width: 36rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem); color: rgba(255,255,255,.72);
}
.cta-band__note { margin-top: 1.3rem; font-size: .82rem; color: rgba(255,255,255,.45); line-height: 1.9; }
.cta-band__note a { color: rgba(255,255,255,.82); font-weight: 700; transition: color .2s; }
.cta-band__note a:hover { color: #fff; text-decoration: underline; }

/* -------------------------------------------------------------- footer -- */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,.62); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.8rem;
}
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin-top: .9rem; max-width: 20rem; font-size: .92rem; }
.footer__col h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 1rem; font-weight: 700; }
.footer__col a { display: block; padding: .3rem 0; font-size: .93rem; transition: color .2s, transform .2s var(--ease); width: max-content; }
.footer__col a:hover { color: #fff; transform: translateX(3px); }

/* ---- contact rows with icons (footer) ---- */
.footer__col a.footer__contact {
  display: flex;                 /* block-level, so the CTA below never sits beside it */
  align-items: center; gap: .65rem; padding: .35rem 0;
}
.footer__col a.footer__contact:hover { transform: none; }
.footer__contact-ico {
  flex: none; width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line-dark);
  transition: background-color .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
}
.footer__contact-ico svg { width: 16px; height: 16px; }
.footer__contact:hover .footer__contact-ico {
  background: linear-gradient(140deg, var(--brand), var(--brand-glow));
  border-color: transparent; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(91,91,245,.35);
}

/* ---- inline icon contacts (CTA band + lead form note) ---- */
.cta-contacts { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.35rem; }
.cta-contact { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.cta-contact svg { flex: none; width: 15px; height: 15px; opacity: .75; }
.cta-contact:hover svg { opacity: 1; }
.footer__cta { margin-top: 1.15rem; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  padding-block: 1.4rem; border-top: 1px solid var(--line-dark);
  font-size: .82rem; color: rgba(255,255,255,.42);
}

/* ================================================================ MODAL == */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: clamp(.75rem, 3vw, 2rem); }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(8, 10, 18, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fadeIn .28s var(--ease) both;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal__panel {
  position: relative; z-index: 1;
  width: min(560px, 100%); max-height: min(88vh, 900px);
  background: var(--paper); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: panelIn .4s var(--ease) both;
}
.modal__panel--wide { width: min(1020px, 100%); }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.modal.is-closing .modal__panel { animation: panelOut .2s var(--ease-io) both; }
.modal.is-closing .modal__backdrop { animation: fadeOut .2s var(--ease-io) both; }
@keyframes panelOut { to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes fadeOut { to { opacity: 0; } }

.modal__scroll { max-height: min(88vh, 900px); overflow-y: auto; overscroll-behavior: contain; }
.modal__close {
  position: absolute; top: .85rem; right: .85rem; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  color: var(--ink); background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background-color .2s, transform .2s var(--ease);
}
.modal__close:hover { background: #fff; transform: rotate(90deg); }

/* ---- details modal ---- */
.detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.detail__media {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background:
    radial-gradient(110% 70% at 50% 0%, var(--tint, rgba(91,91,245,.16)), transparent 72%),
    var(--paper-2);
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 1rem;
}
.detail__shot { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); }
.detail__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.detail__meta div {
  padding: .7rem .8rem; border-radius: var(--r-sm);
  background: var(--paper); border: 1px solid var(--line-soft);
  text-align: center;
}
.detail__meta b { display: block; font-size: .95rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.detail__meta s { text-decoration: none; font-size: .68rem; font-weight: 600; color: var(--muted); }

.detail__info { padding: clamp(1.5rem, 3vw, 2.3rem); }
.detail__cat {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
}
.detail__title { margin-top: .6rem; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.03em; }
.detail__desc { margin-top: .85rem; font-size: .96rem; line-height: 1.66; }

.detail__h {
  margin-top: 1.7rem; margin-bottom: .8rem;
  font-size: .74rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
}
.feat-list { columns: 2; column-gap: 1.1rem; }
.feat-list li {
  display: flex; align-items: flex-start; gap: .5rem;
  margin-bottom: .5rem; break-inside: avoid; -webkit-column-break-inside: avoid;
  font-size: .875rem; color: var(--body);
}
.feat-list li::before {
  content: "✓"; flex: none; margin-top: .05rem;
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: .62rem; font-weight: 700;
  background: rgba(22,160,106,.12); color: var(--green);
}
.pill-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.pill-list li {
  padding: .34rem .75rem; border-radius: 100px;
  font-size: .82rem; font-weight: 600; color: var(--body);
  background: var(--paper-2); border: 1px solid var(--line-soft);
}

.detail__price {
  margin-top: 1.7rem; padding: 1.1rem 1.2rem;
  border-radius: var(--r-md);
  background: var(--paper-2); border: 1px solid var(--line-soft);
}
.detail__price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; margin-top: .6rem; }
.detail__price b { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.detail__price .price-was { font-size: 1.05rem; }
.detail__price s { text-decoration: none; font-size: .8rem; font-weight: 600; color: var(--muted); }
.detail__price em { display: block; margin-top: .55rem; font-style: normal; font-size: .8rem; color: var(--muted); }
.detail__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.detail__actions .btn { flex: 1 1 160px; }
.detail__note { margin-top: 1rem; font-size: .8rem; color: var(--muted); text-align: center; }

/* ---- lead form ---- */
.lead { padding: clamp(1.6rem, 4vw, 2.4rem); }
.lead__tag {
  display: inline-block; padding: .3rem .7rem; border-radius: 100px;
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
}
.lead__title { margin-top: .9rem; font-size: clamp(1.4rem, 3vw, 1.75rem); letter-spacing: -.03em; }
.lead__text { margin-top: .55rem; font-size: .95rem; }

.form { margin-top: 1.6rem; display: grid; gap: .95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .95rem; }
.field { display: grid; gap: .35rem; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink); }
.field label i { color: #ef4444; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .9rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper); font-size: .93rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2379809a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px;
  padding-right: 2.3rem;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ef4444; }
.field.is-invalid input:focus { box-shadow: 0 0 0 4px rgba(239,68,68,.13); }
.err { font-size: .76rem; color: #ef4444; min-height: 0; }
.form__note { font-size: .78rem; color: var(--muted); text-align: center; line-height: 1.7; }
.form__note a { color: var(--brand); font-weight: 700; }
.form__note a:hover { text-decoration: underline; }
.form__note .cta-contact { margin-inline: .3rem; vertical-align: middle; }

/* ---- success ---- */
.success { padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.4rem); text-align: center; }
.success__icon {
  width: 62px; height: 62px; margin: 0 auto 1.3rem;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(22,160,106,.12); color: var(--green);
  animation: pop .5s var(--ease) both;
}
.success__icon svg { width: 30px; height: 30px; }
.success__warn { display: none; }
.success.is-fallback .success__icon { background: rgba(245, 158, 11, .14); color: #d97706; }
.success.is-fallback .success__tick { display: none; }
.success.is-fallback .success__warn { display: block; }

#successWhatsapp { margin-top: 1.5rem; }
.success__hint { margin-top: .6rem; font-size: .8rem; color: var(--muted); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.success h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); letter-spacing: -.028em; }
.success p { margin-top: .7rem; font-size: .93rem; }
.success__actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.5rem; }

/* ---------------------------------------------------------------- toast -- */
.toast {
  position: fixed; left: 50%; bottom: 26px; translate: -50% 0; z-index: 200;
  padding: .75rem 1.15rem; border-radius: 100px;
  background: var(--ink); color: #fff;
  font-size: .875rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------ reveal on scroll -- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ========================================================== RESPONSIVE === */
@media (max-width: 1040px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stage { order: -1; max-width: 560px; margin-inline: auto; width: 100%; }
  .hero__copy { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .detail { grid-template-columns: 1fr; }
  .detail__media { border-right: 0; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 74px 0 auto; z-index: 80;
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: rgba(255,255,255,.97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(11,13,20,.12);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__link { color: var(--ink) !important; padding: .8rem .6rem; border-radius: 10px; font-size: 1rem; }
  .nav__link:hover { background: var(--paper-2) !important; }
  .nav__cta { margin: .6rem 0 0; }
  .nav-toggle { display: flex; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  /* the glow is sized in vw, so it needs to grow back on narrow screens */
  .orb--1 { width: 95vw; height: 95vw; left: -30vw; top: -22vw; }
  .orb--2 { width: 85vw; height: 85vw; right: -25vw; top: -12vw; }
  .orb--3 { width: 100vw; height: 70vw; right: -10vw; bottom: -22vw; }
}

@media (max-width: 620px) {
  .hero__title { font-size: clamp(2.05rem, 8.5vw, 2.6rem); }
  .br-lg { display: none; }
  .grid { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search {
    /* .toolbar turns column here, so the 240px flex-basis would become a
       HEIGHT and drag the absolutely-centred icon below the input. */
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
  }
  .chips {
    min-width: 0;                 /* without this the nowrap row stretches the page */
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: .35rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .feat-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .detail__actions .btn { flex: 1 1 100%; }
  .stage-chip--a { left: 0; bottom: 12%; }
  .stage-chip--b { right: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 1.8rem; }
  .card__actions { flex-direction: column; }
}
