/* PrestaMatch — new homepage art direction (2026-07).
   Scoped entirely under .pmx-home so it never affects other pages.
   Loaded only by views/main.pug. When the AD is rolled out site-wide,
   this folds into the main stylesheet. */

.pmx-home{
  --font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --accent:#6455FA; --accent-ink:#4a3fc9; --accent-soft:#efecff;   /* primary: violet-leaning indigo */
  --accent2:#ee6a5c; --accent2-soft:#ffece9; --hl-color:#ff8f80;   /* coral brand accent (spice) */
  --positive:#12a878;                                              /* semantic green: match score */
  --bg:#F6F7FB; --surface:#ffffff; --ink:#191b2e; --muted:#5b5f78; --line:#e4e7f2; --star:#f5a623;
  --radius:10px; --radius-lg:14px; --shadow:0 1px 2px rgba(16,18,40,.05),0 12px 30px rgba(16,18,40,.06);
  --wrap:1140px;
  background:var(--bg);color:var(--ink);font-family:var(--font-sans);font-size:17px;line-height:1.6;
}
.pmx-home *{box-sizing:border-box}
.pmx-home img{max-width:100%;display:block}
.pmx-home a{color:inherit;text-decoration:none}
.pmx-home .wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.pmx-home section{padding:72px 0}
.pmx-home h1,.pmx-home h2,.pmx-home h3{margin:0;letter-spacing:-.02em;line-height:1.05;text-wrap:balance;font-weight:700}
.pmx-home p{margin:0}

.pmx-home .eyebrow{font-size:12px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);
  margin:0 0 18px;display:inline-flex;align-items:center;gap:10px}
.pmx-home .eyebrow::before{content:"";width:22px;height:2px;border-radius:2px;background:var(--accent2)}
.pmx-home .sec-head{max-width:640px;margin:0 0 40px}
.pmx-home .sec-head h2{font-size:34px;margin-bottom:12px}
.pmx-home .sec-head p{color:var(--muted);font-size:18px}

.pmx-home .btn{display:inline-flex;align-items:center;gap:8px;font:inherit;font-weight:600;font-size:16px;
  padding:14px 22px;border-radius:var(--radius);border:1px solid transparent;cursor:pointer;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.pmx-home .btn-primary{background:var(--accent);color:#fff;box-shadow:0 6px 16px rgba(100,85,250,.28)}
.pmx-home .btn-primary:hover{transform:translateY(-1px);box-shadow:0 10px 22px rgba(100,85,250,.34)}
.pmx-home .btn-ghost{background:transparent;border-color:var(--line);color:var(--ink)}
.pmx-home .btn-ghost:hover{border-color:var(--accent);color:var(--accent)}

/* header */
.pmx-home .top{position:relative;z-index:3;padding:22px 0}
.pmx-home .top .wrap{display:flex;align-items:center;gap:28px}
.pmx-home .logo{font-weight:800;font-size:22px;letter-spacing:-.02em;color:var(--ink)}
.pmx-home .logo span{color:var(--accent)}
.pmx-home .nav{display:flex;gap:26px;margin-left:14px}
.pmx-home .nav a{color:var(--muted);font-size:15px;font-weight:500;padding:4px 0;position:relative}
.pmx-home .nav a:hover{color:var(--ink)}
.pmx-home .nav a::after{content:"";position:absolute;left:0;right:100%;bottom:0;height:2px;background:var(--accent);transition:right .2s}
.pmx-home .nav a:hover::after{right:0}
.pmx-home .top .spacer{margin-left:auto}
.pmx-home .top .btn{padding:11px 18px;font-size:15px}

/* hero — indigo/violet band */
.pmx-home .hero{position:relative;overflow:hidden;color:#fff;
  background:radial-gradient(1100px 460px at 80% -20%,#5a4cd9 0%,#322a83 58%,#271f5f 100%)}
.pmx-home .hero::after{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(var(--grid-dot,rgba(255,140,120,.2)) 1.2px,transparent 1.2px);background-size:26px 26px;
  -webkit-mask-image:radial-gradient(700px 380px at 82% 8%,#000 0%,transparent 72%);
          mask-image:radial-gradient(700px 380px at 82% 8%,#000 0%,transparent 72%);opacity:.6}
.pmx-home .hero .wrap{position:relative;z-index:2;display:grid;grid-template-columns:1.1fr .9fr;gap:56px;align-items:center;
  padding-top:56px;padding-bottom:80px}
.pmx-home .hero .eyebrow{color:#c9cdf5}
.pmx-home .hero .eyebrow::before{background:var(--hl-color)}
.pmx-home .hero h1{font-size:52px;margin-bottom:22px;color:#fff}
.pmx-home .hero .hl{white-space:nowrap;color:var(--hl-color);font-weight:800}
.pmx-home .hero .lead{font-size:20px;color:#c9cdf5;max-width:34ch;margin-bottom:30px}
.pmx-home .hero .cta-row{display:flex;flex-wrap:wrap;gap:14px;align-items:center}
.pmx-home .hero .btn-primary{background:#fff;color:var(--accent-ink);box-shadow:0 6px 16px rgba(0,0,0,.18)}
.pmx-home .hero .btn-ghost{color:#fff;border-color:rgba(255,255,255,.45)}
.pmx-home .hero .btn-ghost:hover{color:#fff;border-color:#fff;background:rgba(255,255,255,.08)}
.pmx-home .hero .trust{margin-top:22px;font-size:14px;color:#c9cdf5;display:flex;align-items:center;gap:8px}
.pmx-home .dot{width:6px;height:6px;border-radius:50%;background:var(--accent2);display:inline-block}

/* hero product preview */
.pmx-home .preview{background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);
  box-shadow:0 20px 50px rgba(10,12,40,.32);padding:18px;color:var(--ink)}
.pmx-home .pv-search{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;
  padding:11px 14px;color:var(--muted);font-size:14px;margin-bottom:16px}
.pmx-home .pv-search .mag{width:16px;height:16px;border:2px solid var(--accent);border-radius:50%;position:relative;flex:0 0 auto}
.pmx-home .pv-search .mag::after{content:"";position:absolute;right:-4px;bottom:-4px;width:7px;height:2px;background:var(--accent);transform:rotate(45deg)}
.pmx-home .ac{display:flex;align-items:center;gap:13px;padding:12px;border-radius:10px}
.pmx-home .ac:hover{background:var(--bg)}
.pmx-home .ac .mono{width:44px;height:44px;border-radius:11px;flex:0 0 auto;display:grid;place-items:center;font-weight:800;color:#fff;font-size:16px}
.pmx-home .ac .who{flex:1;min-width:0}
.pmx-home .ac .who b{font-size:15px;font-weight:700}
.pmx-home .ac .who small{display:block;color:var(--muted);font-size:12.5px;margin-top:2px}
.pmx-home .ac .compat{text-align:right;white-space:nowrap}
.pmx-home .ac .compat b{display:block;font-size:16px;font-weight:800;color:var(--positive);font-variant-numeric:tabular-nums;line-height:1.1}
.pmx-home .ac .compat i{font-style:normal;font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}

/* stats bar */
.pmx-home .stats{background:var(--surface);border-bottom:1px solid var(--line)}
.pmx-home .stats .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;padding:26px 24px}
.pmx-home .stat{border-left:2px solid var(--accent2);padding-left:16px}
.pmx-home .stat b{display:block;font-size:30px;font-weight:800;letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums}
.pmx-home .stat span{color:var(--muted);font-size:14px}

/* how it works */
.pmx-home .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.pmx-home .step{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow)}
.pmx-home .step .num{font-weight:800;font-size:15px;color:var(--accent);width:38px;height:38px;border-radius:50%;
  background:var(--accent-soft);display:grid;place-items:center;margin-bottom:18px;font-variant-numeric:tabular-nums}
.pmx-home .step h3{font-size:19px;margin-bottom:8px}
.pmx-home .step p{color:var(--muted);font-size:15.5px}

/* featured agencies */
.pmx-home .agy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.pmx-home .agy{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;
  box-shadow:var(--shadow);display:flex;flex-direction:column;gap:14px;color:var(--ink);transition:transform .15s ease,box-shadow .15s ease}
.pmx-home .agy:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(16,18,40,.10)}
.pmx-home .agy .best{position:absolute;top:-13px;left:22px;background:var(--accent2);color:#fff;font-weight:700;font-size:12.5px;
  padding:5px 12px;border-radius:999px;box-shadow:0 8px 18px rgba(238,106,92,.38)}
.pmx-home .agy .row{display:flex;align-items:center;gap:13px}
.pmx-home .agy .logo-box{width:52px;height:52px;border-radius:13px;flex:0 0 auto;border:1px solid var(--line);
  background:#fff;display:grid;place-items:center;overflow:hidden;padding:6px}
.pmx-home .agy .logo-box img{width:100%;height:100%;object-fit:contain}
.pmx-home .agy .row b{font-size:17px;font-weight:700;display:block}
.pmx-home .agy .row small{color:var(--muted);font-size:13px}
.pmx-home .agy .tags{display:flex;flex-wrap:wrap;gap:6px}
.pmx-home .tag{font-size:12.5px;color:var(--muted);background:var(--bg);border:1px solid var(--line);padding:4px 10px;border-radius:8px;font-weight:500}
.pmx-home .agy .foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:6px;font-size:14px}
.pmx-home .agy .more{color:var(--accent);font-weight:600}
.pmx-home .badge{font-size:11.5px;font-weight:700;color:var(--accent);display:inline-flex;align-items:center;gap:5px}
.pmx-home .badge svg{width:14px;height:14px}

/* cities */
.pmx-home .cities-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.pmx-home .city{position:relative;border-radius:var(--radius);overflow:hidden;aspect-ratio:3/4;display:flex;align-items:flex-end;
  padding:16px;color:#fff;background:linear-gradient(180deg,rgba(20,22,46,0) 30%,rgba(20,22,46,.72));isolation:isolate}
.pmx-home .city::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--cbg)}
.pmx-home .city b{font-size:17px;font-weight:700}
.pmx-home .city small{display:block;font-size:12.5px;opacity:.85;margin-top:2px}

/* other cities (kept for internal linking / SEO) */
.pmx-home .morelinks{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:22px}
.pmx-home .morelinks a{color:var(--muted);font-size:14px}
.pmx-home .morelinks a:hover{color:var(--accent)}

/* specialties */
.pmx-home .chips{display:flex;flex-wrap:wrap;gap:10px}
.pmx-home .chips a{color:var(--ink);border:1px solid var(--line);background:var(--surface);padding:10px 16px;border-radius:999px;
  font-size:15px;font-weight:500;transition:.15s}
.pmx-home .chips a:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}

/* agency CTA band */
.pmx-home .band{background:var(--accent);color:#fff;border-radius:20px;padding:44px;display:flex;align-items:center;
  justify-content:space-between;gap:24px;flex-wrap:wrap}
.pmx-home .band h2{font-size:26px;color:#fff;max-width:20ch}
.pmx-home .band p{color:rgba(255,255,255,.82);margin-top:6px;font-size:16px}
.pmx-home .band .btn{background:#fff;color:var(--accent-ink)}

/* footer */
.pmx-home .foot-site{background:var(--surface);border-top:1px solid var(--line);color:var(--muted);font-size:14.5px}
.pmx-home .foot-site .wrap{display:flex;flex-wrap:wrap;gap:20px;justify-content:space-between;padding:34px 24px;align-items:center}
.pmx-home .foot-site a{color:var(--muted)}
.pmx-home .foot-site a:hover{color:var(--accent)}
.pmx-home .foot-links{display:flex;gap:22px;flex-wrap:wrap}

@media (max-width:900px){
  .pmx-home .hero .wrap{grid-template-columns:1fr;gap:36px;padding-bottom:56px}
  .pmx-home .hero h1{font-size:38px}
  .pmx-home .steps,.pmx-home .agy-grid{grid-template-columns:1fr}
  .pmx-home .cities-grid{grid-template-columns:repeat(2,1fr)}
  .pmx-home .stats .wrap{grid-template-columns:repeat(2,1fr)}
  .pmx-home .nav{display:none}
  .pmx-home section{padding:52px 0}
}
@media (prefers-reduced-motion:reduce){.pmx-home *{transition:none!important}}
