/* ── HOMEPAGE LAYOUT ── */
.hp-hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative; z-index: 1;
  border-bottom: 1px solid var(--border2);
}

.hp-badge {
  display: inline-flex; align-items: center; gap: 16px;
  border: 1px solid var(--border); border-radius: 27px;
  padding: 8px 22px; font-size: 15px; font-weight: 600;
  letter-spacing: .06em; color: var(--lavender); margin-bottom: 32px;
}
.hp-badge-star {
  position: relative; width: 20px; height: 20px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.hp-badge-ring {
  position: absolute; top: 50%; left: 50%;
  width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid;
  opacity: 0; transform: translate(-50%,-50%) scale(0.96);
  animation: hpbring 3.6s ease-out infinite;
}
.hp-badge-ring:nth-child(1) { border-color: var(--amber); animation-delay: 0s; }
.hp-badge-ring:nth-child(2) { border-color: #22d3ee; animation-delay: 1.2s; }
.hp-badge-ring:nth-child(3) { border-color: #f472b6; animation-delay: 2.4s; }
@keyframes hpbring {
  0%   { transform: translate(-50%,-50%) scale(0.96); opacity: 0.75; }
  100% { transform: translate(-50%,-50%) scale(3.5); opacity: 0; }
}

.hp-h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(36px, 5vw, 66px);
  font-weight: 700; letter-spacing: -.032em; line-height: 1.05;
  color: var(--text); margin-bottom: 22px;
}
.hp-h1 em { color: var(--lavender); font-style: normal; }

.hp-mission {
  font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7;
  color: var(--text2); max-width: 560px; margin: 0 auto 28px;
}
.hp-mission strong { color: rgba(240,244,255,.75); font-weight: 500; }

.hp-products {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 0;
}

.hp-audit-progress { height: 2px; overflow: hidden; background: rgba(255,255,255,0.04); }
.hp-audit-progress-bar { width: 200%; height: 100%; background: linear-gradient(90deg,#f43f5e,#fb923c,#facc15,#4ade80,#22d3ee,#818cf8,#e879f9,#f43f5e); animation: hpapscan 2.2s ease-in-out infinite alternate; }
@keyframes hpapscan { 0%{transform:translateX(-50%)} 100%{transform:translateX(0%)} }

.hp-insp-cursor { position: absolute; top: 6px; left: 6px; pointer-events: none; z-index: 2; }

/* ── PRODUCT SECTIONS ── */
.hp-sec {
  padding: 88px 0;
  border-bottom: 1px solid var(--border2);
  position: relative; z-index: 1;
}
.hp-sec-alt { background: #0e1220; }

.hp-cnt {
  max-width: 1440px; margin: 0 auto; padding: 0 40px;
}

.hp-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}

/* Scroll reveal */
.hp-rv {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.hp-rv.in { opacity: 1; transform: none; }
.hp-d1{transition-delay:.1s}
.hp-d2{transition-delay:.2s}
.hp-d3{transition-delay:.3s}
.hp-d4{transition-delay:.4s}

/* Wordmark row */
.hp-wm-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hp-wm-tag {
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text3); white-space: nowrap;
}

.hp-h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.1;
  color: var(--text); margin-bottom: 14px;
}

.hp-body {
  font-size: 15px; line-height: 1.7; color: var(--text2);
  margin-bottom: 24px;
}

.hp-acts { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }

.hp-btn-p {
  font-family: 'Gabarito', sans-serif; font-size: 13px; font-weight: 600;
  color: #fff; background: var(--violet); padding: 9px 18px;
  border-radius: 6px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px; transition: background .15s;
}
.hp-btn-p:hover { background: var(--violet-hover); color: #fff; }
.hp-btn-p:visited { color: #fff; }
.hp-btn-p.hp-dis { opacity: .42; cursor: not-allowed; pointer-events: none; }

.hp-btn-s {
  font-family: 'Gabarito', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--lavender); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 6px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px; transition: all .15s;
}
.hp-btn-s:hover { border-color: rgba(120,74,157,.5); color: var(--text); }

.hp-soon-note {
  font-size: 11px; color: var(--lavender); font-weight: 600;
  letter-spacing: .03em; margin-bottom: 20px;
}

/* Plan name badges (matches .plan-name in marketing.njk) */
.hp-plan-nm {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 10px;
}
.hp-plan-nm.free { color: #4ade80; }
.hp-plan-nm.pro  { color: var(--lavender); }

/* Free/Pro callout card */
.hp-fpro {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.hp-fpro-col { padding: 16px 18px; }
.hp-fpro-col + .hp-fpro-col { border-left: 1px solid var(--border); }
.hp-fpro-list { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.hp-fpro-list li { font-size: 12px; color: var(--text2); display: flex; align-items: baseline; gap: 6px; }
.hp-fpro-list li::before { content: "\2192"; color: var(--text3); font-size: 10px; flex-shrink: 0; }
.hp-fpro-cta-dis { font-size: 12px; font-weight: 600; color: var(--text3); opacity: .4; cursor: not-allowed; }

/* Feature pills */
.hp-feat-strip { margin-top: 8px; }
.hp-feat-lbl { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.hp-feat-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.hp-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 18px;
  border: 1px solid rgba(240,244,255,.07);
  background: rgba(255,255,255,.03);
  font-size: 12px; font-weight: 600; color: var(--text3);
  text-decoration: none; transition: all .14s;
}
.hp-pill:hover { border-color: rgba(120,74,157,.4); color: var(--text2); background: rgba(120,74,157,.07); }
.hp-pill.act { border-color: rgba(120,74,157,.5); color: var(--lavender); background: rgba(120,74,157,.1); }
.hp-pill svg { width: 11px; height: 11px; opacity: .7; }
.hp-pill.hp-dis { opacity: .4; pointer-events: none; }
.hp-pill-b { font-size: 8px; font-weight: 700; letter-spacing: .05em; padding: 1px 4px; border-radius: 2px; margin-left: 2px; }
.hp-pill-b.free { background: rgba(74,222,128,.12); color: #4ade80; }
.hp-pill-b.soon { background: rgba(253,187,37,.15); color: #fdbb25; }

/* UI mock cards */
.hp-mock { background: var(--bg2); border: 1px solid var(--border); border-radius: 11px; overflow: hidden; width: 100%; }
.hp-mock-cc { padding: 18px; }
.hp-cc-swatches { display: flex; gap: 6px; margin-bottom: 14px; }
.hp-cc-swatch { flex: 1; height: 66px; border-radius: 7px; border: 1px solid rgba(255,255,255,.05); }
.hp-cc-ratio { font-family: 'Bricolage Grotesque', sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: #4ade80; text-align: center; line-height: 1; }
.hp-cc-ratio-lbl { font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); text-align: center; margin: 3px 0 12px; }
.hp-cc-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.hp-cc-badge { border-radius: 5px; padding: 6px 9px; display: flex; align-items: center; justify-content: space-between; background: rgba(74,222,128,.07); border: 1px solid rgba(74,222,128,.18); }
.hp-cc-badge-lbl { font-family: 'Bricolage Grotesque', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); }
.hp-cc-badge-sub { font-size: 9px; color: var(--text2); }
.hp-cc-badge-pass { font-size: 8px; font-weight: 700; padding: 2px 5px; border-radius: 3px; background: rgba(74,222,128,.12); color: #4ade80; }

.hp-mock-insp { padding: 13px; position: relative; }
.hp-insp-hdr { border-radius: 4px; padding: 4px 7px; margin-bottom: 9px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 5px; background: rgba(248,113,113,.1); color: #fca5a5; }
.hp-insp-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 11px; border-bottom: 1px solid rgba(255,255,255,.04); }
.hp-insp-row:last-child { border-bottom: none; }
.hp-insp-k { color: var(--text3); }
.hp-insp-v { font-weight: 600; }
.hp-insp-v.bad { color: #f87171; }
.hp-insp-v.ok { color: #4ade80; }
.hp-insp-v.dim { color: var(--text2); }

.hp-mock-audit { }
.hp-audit-bar { background: var(--bg3); padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.hp-audit-lbl { font-size: 11px; color: var(--text2); font-weight: 600; }
.hp-audit-btn { font-size: 9px; background: var(--violet); color: #fff; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.hp-audit-log { padding: 5px 0; }
.hp-audit-row { display: flex; gap: 6px; padding: 3px 11px; font-size: 11px; align-items: center; }
.hp-audit-ok { color: #4ade80; }
.hp-audit-warn { color: #fbbf24; }
.hp-audit-stats { display: flex; border-top: 1px solid var(--border); }
.hp-audit-stat { flex: 1; text-align: center; padding: 8px 3px; border-right: 1px solid var(--border); }
.hp-audit-stat:last-child { border-right: none; }
.hp-audit-stat-n { font-family: 'Bricolage Grotesque', sans-serif; font-size: 19px; font-weight: 700; display: block; line-height: 1; margin-bottom: 2px; }
.hp-audit-stat-l { font-size: 9px; color: var(--text3); }

.hp-mock-guide { padding: 16px; }
.hp-guide-cat { font-size: 9px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--lavender); margin-bottom: 6px; }
.hp-guide-title { font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 8px; }
.hp-guide-body { font-size: 12px; color: var(--text2); line-height: 1.6; margin-bottom: 10px; }
.hp-guide-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.hp-guide-tag { background: var(--bg3); border-radius: 3px; padding: 2px 6px; font-size: 9px; color: var(--text3); font-weight: 600; }

.hp-vwrap { display: flex; align-items: center; width: 100%; }

/* Responsive */
@media (max-width: 960px) {
  .hp-split { gap: 48px; }
  .hp-cnt { padding: 0 32px; }
}
@media (max-width: 800px) {
  .hp-sec { padding: 64px 0; }
  .hp-split { grid-template-columns: 1fr; gap: 40px; }
  .hp-cnt { padding: 0 28px; }
  /* Default: text first (first child), visual second (last child) - already correct */
  /* Reversed sections (Inspect, Guides): visual is first child in DOM, text is last.
     Swap so text always appears above the visual on mobile. */
  .hp-sec-rev .hp-split > :first-child { order: 2; }
  .hp-sec-rev .hp-split > :last-child  { order: 1; }
  .hp-mock { margin: 0 auto; }
  .hp-body { max-width: none; }
}
@media (max-width: 480px) {
  .hp-hero { padding: 64px 0 56px; }
  .hp-sec { padding: 56px 0; }
  .hp-cnt { padding: 0 20px; }
  .hp-split { gap: 32px; }
}
@media (max-width: 380px) {
  .hp-cnt { padding: 0 16px; }
}
