/* ==========================================================================
   Convertly — homepage (template-homepage-2026.php)
   Only what the homepage alone uses: the hero with its conversion-engine animation,
   the about intro, the process heading and the comparison table. Everything shared is
   in css/site.css, which loads first.
   ========================================================================== */

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 18px 0 40px; isolation: isolate; }
.hero__meta { display: none; }
.hero__meta-mobile { display: flex; justify-content: center; }
.hero__meta-mobile span, .hero__meta span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta-mobile span::before, .hero__meta span:first-child::before { content: ""; width: 7px; height: 7px; background: var(--red); }
.hero__meta-mobile { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-top: 64px; }
/* Readability: a frosted halo behind the copy blurs and dims the conversion engine where text sits
   on it (strongest behind the lead, form, trust line and legend, lighter behind the headline);
   around the copy the pixels stay sharp. The mask feathers every edge, so no box is ever seen. */
.hero__content::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: -60px; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); pointer-events: none;
  background: rgba(19, 24, 39, .38);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60px, #000 calc(100% - 60px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 60px, #000 calc(100% - 60px), transparent);
}
.hero__title { font-size: var(--fs-h1); font-weight: 500; line-height: normal; max-width: 1060px; }
.hero__lead { max-width: 640px; }
.hero__legend { display: none; }

.audit-form { width: 100%; max-width: 580px; display: flex; flex-direction: column; gap: 10px; }
.audit-form__input {
  width: 100%; height: 54px; padding: 0 22px; border-radius: 999px; text-align: center;
  background: var(--navy-deep); border: 1px solid var(--line-strong); color: var(--white);
  font: 500 16px var(--font-body);
}
.audit-form__input::placeholder { color: var(--text-faint); }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 13px; color: var(--text-muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--red-text); width: 15px; height: 15px; }

.platforms { position: relative; z-index: 2; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.platforms__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.platforms__list { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-faint); }

@media (min-width: 768px) {
  .hero { padding: 40px 0 72px; }
  .hero__meta-mobile { display: none; }
  .hero__meta { display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid rgba(254,253,255,.1); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
  .hero__content { gap: 30px; padding-top: 96px; min-height: 600px; }
  /* Full strength over the whole copy block, headline included, and 70px below it (where the arrow's
     foot can reach); feathered beyond that and across 240px at each side of a 1280px-wide band,
     so it fades out before its own edges. */
  .hero__content::before {
    top: -40px; bottom: -180px; left: calc(50% - 640px); right: calc(50% - 640px);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60px, #000 calc(100% - 110px), transparent), linear-gradient(to right, transparent, #000 240px, #000 calc(100% - 240px), transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent, #000 60px, #000 calc(100% - 110px), transparent), linear-gradient(to right, transparent, #000 240px, #000 calc(100% - 240px), transparent);
    mask-composite: intersect;
  }
  .audit-form { flex-direction: row; padding: 8px; border-radius: 999px; background: var(--navy-deep); border: 1px solid var(--line-strong); }
  .audit-form__input { height: 48px; border: 0; background: transparent; text-align: left; padding: 0 20px; }
  .audit-form .btn { width: auto; min-height: 48px; font-size: 15px; }
  .trust { font-size: 14px; gap: 10px 28px; }
  .hero__legend { display: inline-flex; align-items: center; gap: 14px; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
  .hero__legend span { display: inline-flex; align-items: center; gap: 8px; }
  .hero__legend span::before { content: ""; width: 9px; height: 9px; background: var(--pixel-grey); }
  .hero__legend span:last-child { color: var(--red-text); }
  .hero__legend span:last-child::before { background: var(--red); }
  .platforms { flex-direction: row; align-items: center; gap: 40px; margin-top: 88px; padding-top: 32px; }
  .platforms__label { flex-shrink: 0; font-size: 13px; }
  .platforms__list { flex-grow: 1; justify-content: space-between; font-size: 22px; }
}

/* ---------- 6b. Conversion engine (hero background animation) ----------
   Built by js/homepage-2026.js. Only transform + opacity are animated, so the
   whole thing runs on the compositor. */
.engine { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.engine__dot { position: absolute; width: 2px; height: 2px; background: rgba(254,253,255,.14); }
.engine__cell {
  position: absolute;
  animation: eng-move 7.5s cubic-bezier(.65,0,.35,1) infinite both;
  will-change: transform;
}
.engine__cell::before, .engine__cell::after {
  content: ""; position: absolute; inset: 0;
  animation-duration: 7.5s; animation-iteration-count: infinite; animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.65,0,.35,1);
  animation-delay: inherit;
}
.engine__cell::before { background: var(--pixel-grey); animation-name: eng-grey; }
.engine__cell::after { background: rgba(239,2,31,.14); box-shadow: inset 0 0 0 1.5px rgba(239,2,31,.9); animation-name: eng-red; }

.engine__drift { position: absolute; background: var(--pixel-grey); opacity: 0; animation-duration: 7.5s; animation-timing-function: linear; animation-iteration-count: infinite; animation-fill-mode: both; }
.engine__drift--x { animation-name: eng-drift-x; }
.engine__drift--y { animation-name: eng-drift-y; }

.engine.is-paused .engine__cell,
.engine.is-paused .engine__cell::before,
.engine.is-paused .engine__cell::after,
.engine.is-paused .engine__drift { animation-play-state: paused; }

@keyframes eng-move {
  0%, 12% { transform: translate(var(--dx), var(--dy)) scale(.3); }
  46%, 84% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(var(--dx), var(--dy)) scale(.3); }
}
@keyframes eng-grey { 0%, 22% { opacity: 1; } 42%, 86% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes eng-red  { 0%, 22% { opacity: 0; } 42%, 86% { opacity: 1; } 98%, 100% { opacity: 0; } }
/* Drifting visitors share the arrow's 7.5s cycle: they cross while the cells fly in and have faded
   by 40%, before the arrow forms (46%), so the finished mark holds on a clean background. */
@keyframes eng-drift-x { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: .9; } 30% { opacity: .5; } 40%, 100% { transform: translateX(var(--travel)); opacity: 0; } }
@keyframes eng-drift-y { 0% { transform: translateY(0); opacity: 0; } 6% { opacity: .9; } 30% { opacity: .5; } 40%, 100% { transform: translateY(var(--travel)); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .engine__cell, .engine__cell::before, .engine__cell::after { animation: none; transform: none; }
  .engine__cell::before { opacity: 0; }
  .engine__cell::after { opacity: 1; }
  .engine__drift { display: none; }
}

.about { display: grid; gap: 32px; }
.about__intro { display: flex; flex-direction: column; gap: 24px; }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; }
  .about { grid-template-columns: 5fr 1fr 6fr; }
  .about__intro--right { grid-column: 3; padding-top: 40px; }
.process-head { display: grid; gap: 24px; margin-bottom: 56px; }
@media (min-width: 900px) { .process-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 64px; } }
/* ---------- 11b. Statement band: one bold line, full-width red (after How we work) ---------- */
.statement-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(64px, 9vw, 128px) 0; background: var(--red); }
/* A faint pixel grid, fading in towards the monogram on the right */
.statement-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .2) 1.2px, transparent 1.6px); background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.statement-band__mark { position: absolute; z-index: -1; top: 50%; right: -4%; width: clamp(240px, 34vw, 500px); height: clamp(240px, 34vw, 500px); transform: translateY(-50%); color: rgba(255, 255, 255, .12); pointer-events: none; }
.statement-band__text { max-width: 1000px; font-family: var(--font-display); font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.75rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.03em; color: var(--white); text-wrap: balance; }
.statement-band__text .accent { color: var(--white); }

/* ---------- 12. Comparison table ---------- */
.table-wrap { border: 1px solid rgba(254,253,255,.1); border-radius: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; }
.compare th, .compare td { text-align: left; padding: 22px 28px; }
.compare thead tr { background: #161c2d; }
.compare thead th { font-weight: 700; }
.compare thead .compare__us { background: var(--red-btn); }
.compare thead .compare__us img { width: 120px; height: auto; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 700; }
.compare tbody td { color: var(--text-muted); }
.compare tbody .compare__us { background: rgba(239,2,31,.08); color: var(--white); font-weight: 600; }

/* Trust point linked to the Google reviews */
.trust a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
