/*
Theme Name: Pixel Sentry
Theme URI: https://example.com/pixel-sentry
Author: Pixel Sentry
Author URI: https://example.com
Description: Marketing landing theme for Pixel Sentry — Meta Pixel & CAPI monitoring. Based on the Underscores (_s) starter theme structure.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pixel-sentry
Tags: one-column, custom-menu, custom-logo, translation-ready
*/

/* ============================================================
   Pixel Sentry — site styles
   ============================================================ */

:root {
  --purple:#634F93; --purple-dark:#4A3971; --ink:#3B2F5E; --light-purple:#7D6BAD;
  --gold:#FFD23F; --gold-dark:#B98F00; --coral:#EF6C4A;
  --body:#5B5378; --line:#C9BFE2; --wash:#EFECF6; --page:#F4F2F9; --cream:#FFF8E7;
}

* { box-sizing:border-box; }

body {
  margin:0;
  background:var(--page);
  color:#2B2440;
  font-family:'Nunito',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}

a { color:var(--purple); text-decoration:none; }
a:hover { color:var(--purple-dark); }
h1, h2, h3 { margin:0; }

@keyframes psFloat {
  0%, 100% { transform:translateY(0); }
  50%      { transform:translateY(-8px); }
}

.wrap { max-width:1160px; margin:0 auto; }
.grid { display:grid; gap:20px; }

/* ---------------- accessibility (from underscores) ---------------- */

.screen-reader-text {
  border:0; clip-path:inset(50%);
  height:1px; width:1px;
  margin:-1px; padding:0;
  overflow:hidden; position:absolute !important;
  word-wrap:normal !important;
}
.screen-reader-text:focus {
  background-color:#f1f1f1; border-radius:3px;
  box-shadow:0 0 2px 2px rgba(0,0,0,0.6);
  clip-path:none; color:#21759b;
  display:block; font-size:14px; font-weight:700;
  height:auto; left:5px; line-height:normal;
  padding:15px 23px 14px; top:5px; width:auto;
  z-index:100000;
}

.skip-link { position:absolute; left:-9999rem; }
.skip-link:focus {
  left:6px; top:7px; z-index:999999;
  position:absolute;
  background:var(--ink); color:var(--gold);
  padding:12px 20px; border-radius:8px; font-weight:800;
}

/* ---------------- nav ---------------- */

.site-header {
  position:sticky; top:0; z-index:50;
  background:rgba(244,242,249,0);
  border-bottom:1px solid rgba(227,222,239,0);
  transition:background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.scrolled {
  background:rgba(244,242,249,0.72);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(99,79,147,0.15);
  box-shadow:0 4px 20px rgba(99,79,147,0.07);
}
.site-header nav { max-width:1160px; margin:0 auto; padding:16px 24px; display:flex; align-items:center; gap:32px; }

.site-header .nav-links a {
  color:var(--purple);
  transition:color 0.3s ease;
}
.site-header.scrolled .nav-links a {
  color:var(--ink);
}
.site-header .nav-links a:hover {
  color:var(--purple-dark);
}

.brand { display:flex; align-items:center; gap:10px; }
.brand-mark { display:flex; align-items:center; }
.brand .custom-logo-link { display:flex; }
.brand .custom-logo { height:36px; width:auto; }
.brand-name { font-weight:900; font-size:19px; letter-spacing:0.5px; color:var(--ink); }

.nav-links {
  display:flex; gap:26px; margin:0 0 0 auto; padding:0;
  align-items:center; font-weight:700; font-size:15px;
  list-style:none;
}
.nav-links li { display:flex; }
.nav-links .current-menu-item > a { color:var(--purple-dark); }

/* ---------------- buttons ---------------- */

.btn-gold {
  background:linear-gradient(135deg,#FFE47A,var(--gold));
  color:var(--ink); border-radius:999px; font-weight:900;
  transition:transform 0.18s;
}
.btn-gold:hover { color:var(--ink); transform:translateY(-2px) scale(1.02); }
.btn-gold:active { transform:scale(0.96); }

.nav-cta { padding:11px 24px; box-shadow:0 4px 16px rgba(255,210,63,0.45); font-weight:800; white-space:nowrap; }
.nav-cta:hover { transform:translateY(-1px) scale(1); }

.btn-hero { padding:16px 36px; font-size:17px; box-shadow:0 6px 22px rgba(255,210,63,0.5); }
.btn-cta { display:inline-block; padding:18px 44px; font-size:18px; box-shadow:0 8px 28px rgba(255,210,63,0.45); }

.btn-ghost {
  background:#FFFFFF; color:var(--purple);
  padding:16px 36px; border-radius:999px;
  font-weight:800; font-size:17px;
  border:2px solid var(--line);
  box-shadow:0 4px 16px rgba(99,79,147,0.12);
  transition:border-color 0.18s;
}
.btn-ghost:hover { border-color:var(--purple); }

/* ---------------- shared ---------------- */

.eyebrow {
  display:inline-block;
  font-weight:800; font-size:13px; letter-spacing:2.5px;
  text-transform:uppercase; color:#8A7BB5;
  padding-bottom:10px; border-bottom:3px dashed var(--line);
}
.eyebrow-gold { color:var(--gold); border-bottom-color:rgba(255,210,63,0.4); }

.section-head { text-align:center; margin-bottom:52px; }
.section-head h2 { font-size:40px; font-weight:900; color:var(--ink); margin:18px 0 12px; text-wrap:balance; }
.section-head p { font-size:17px; color:var(--body); font-weight:600; max-width:760px; margin:0 auto; }
.section-head p.narrow { max-width:640px; }

.pill {
  display:inline-block;
  background:var(--cream); border:2px solid var(--ink); border-radius:999px;
  padding:7px 20px;
  font-weight:800; font-size:13px; letter-spacing:2px;
  text-transform:uppercase; color:var(--purple-dark);
}

/* ---------------- hero ---------------- */

.hero {
  background:linear-gradient(180deg,var(--page) 0%,var(--wash) 100%);
  padding:88px 24px 64px;
  text-align:center;
}
.hero-inner { max-width:880px; margin:0 auto; }
.hero .pill { box-shadow:3px 3px 0 var(--ink); transform:rotate(-1.5deg); }
.hero h1 {
  font-size:56px; line-height:1.08; font-weight:900;
  margin:28px 0 20px; color:var(--ink);
  letter-spacing:-0.5px; text-wrap:balance;
}
.hero-sub {
  font-size:19px; line-height:1.6; color:var(--body);
  max-width:720px; margin:0 auto 36px;
  font-weight:600; text-wrap:pretty;
}
.hero-actions { display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

.stat-bar {
  max-width:1160px; margin:64px auto 0;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px;
  text-align:left;
}
.stat {
  background:#FFFFFF; border-radius:20px; padding:24px 26px;
  border-left:6px solid var(--line);
  box-shadow:0 4px 20px rgba(99,79,147,0.10);
}
.stat-num { font-size:38px; font-weight:900; }
.stat-txt { font-size:14px; font-weight:600; color:var(--body); line-height:1.5; margin-top:6px; }

/* ---------------- problem ---------------- */

.problem { padding:88px 24px; }
.pains { grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:22px; }

.pain {
  background:#FFFFFF; border-radius:24px; padding:28px;
  border-left:6px solid var(--line);
  box-shadow:0 4px 20px rgba(99,79,147,0.10);
  transition:all 0.25s;
}
.pain:hover {
  transform:translateY(-4px);
  border-left-color:var(--purple);
  box-shadow:0 8px 32px rgba(99,79,147,0.20);
}
.pain-glyph {
  width:44px; height:44px; border-radius:14px;
  background:var(--wash);
  display:flex; align-items:center; justify-content:center;
  font-size:20px; color:var(--purple); font-weight:900;
  margin-bottom:16px;
}
.pain h3 { font-size:19px; font-weight:800; color:var(--ink); margin:0 0 10px; }
.pain p { font-size:15px; line-height:1.6; color:var(--body); font-weight:600; margin:0; }

/* ---------------- opportunity band ---------------- */

.band { background:linear-gradient(135deg,var(--purple-dark),var(--purple)); padding:80px 24px; }
.band .section-head { margin-bottom:48px; }
.band .section-head h2 { font-size:38px; color:#FFFFFF; margin:18px 0 0; }

.opps { grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); }
.opp {
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:20px; padding:26px;
}
.opp-stat { font-size:30px; font-weight:900; color:var(--gold); margin-bottom:10px; }
.opp h3 { font-size:17px; font-weight:800; color:#FFFFFF; margin:0 0 8px; }
.opp p { font-size:14px; line-height:1.6; color:#D5CDE8; font-weight:600; margin:0; }

/* ---------------- steps ---------------- */

.product { padding:88px 24px; }
.steps { grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); }

.step {
  background:var(--cream);
  border:2px solid var(--ink); border-radius:24px;
  padding:28px 24px;
  box-shadow:5px 5px 0 var(--ink);
}
.step-n {
  width:44px; height:44px; border-radius:999px;
  background:linear-gradient(135deg,var(--light-purple),var(--purple));
  color:#FFFFFF; font-weight:900; font-size:19px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 14px rgba(99,79,147,0.35);
  margin-bottom:16px;
}
.step h3 { font-size:19px; font-weight:800; color:var(--ink); margin:0 0 10px; }
.step p { font-size:14px; line-height:1.6; color:var(--body); font-weight:600; margin:0; }

/* ---------------- features ---------------- */

.features { background:var(--wash); padding:88px 24px; }
.features .section-head h2 { margin:18px 0 0; }

.feature-grid { grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); }
.feature {
  background:#FFFFFF; border-radius:20px; padding:24px 26px;
  box-shadow:0 4px 20px rgba(99,79,147,0.08);
  transition:box-shadow 0.2s;
}
.feature:hover { box-shadow:0 8px 28px rgba(99,79,147,0.18); }
.feature-hd { display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.feature-dot { width:10px; height:10px; border-radius:3px; flex-shrink:0; }
.feature h3 { font-size:17px; font-weight:800; color:var(--ink); margin:0; }
.feature p { font-size:14px; line-height:1.6; color:var(--body); font-weight:600; margin:0; }

.props { margin-top:44px; display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }
.prop {
  background:#FFFFFF;
  border:2px solid var(--line); border-radius:999px;
  padding:12px 24px;
  font-weight:800; font-size:14px; color:var(--purple-dark);
}
.prop-from { color:var(--gold-dark); }

/* ---------------- faq ---------------- */

.faq { padding:88px 24px; max-width:860px; margin:0 auto; }
.faq .section-head { margin-bottom:48px; }
.faq .section-head h2 { margin:18px 0 0; }

.faq-tabs { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:36px; }
.faq-tab {
  border:2px solid var(--line); background:#FFFFFF; color:var(--purple-dark);
  border-radius:999px; padding:11px 22px;
  font-weight:800; font-size:14px;
  cursor:pointer; font-family:inherit;
  transition:all 0.18s;
}
.faq-tab.is-active {
  border-color:var(--ink); background:var(--ink); color:var(--gold);
  box-shadow:0 4px 16px rgba(59,47,94,0.3);
}

.faq-list { display:flex; flex-direction:column; }
.faq-panel { display:flex; flex-direction:column; gap:12px; }
.faq-panel[hidden] { display:none; }
.faq-item {
  background:#FFFFFF; border-radius:18px;
  box-shadow:0 4px 20px rgba(99,79,147,0.08);
  border-left:6px solid var(--purple);
  overflow:hidden;
}
.faq-q {
  width:100%;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:none; border:none; padding:20px 24px;
  cursor:pointer; text-align:left; font-family:inherit;
}
.faq-q-text { font-size:16px; font-weight:800; color:var(--ink); }
.faq-icon {
  width:30px; height:30px; border-radius:999px;
  background:var(--wash); color:var(--purple);
  font-weight:900; font-size:17px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.faq-a {
  display:none;
  padding:0 24px 22px;
  font-size:15px; line-height:1.65; color:var(--body);
  font-weight:600; white-space:pre-line;
}

/* ---------------- glossary ---------------- */

.glossary { background:var(--wash); padding:72px 24px; }
.glossary .section-head { margin-bottom:40px; }
.glossary .section-head h2 { font-size:34px; margin:18px 0 0; }

.gloss-grid { grid-template-columns:repeat(auto-fit,minmax(320px,1fr)); gap:16px; }
.gloss {
  background:#FFFFFF; border-radius:16px; padding:18px 22px;
  box-shadow:0 2px 8px rgba(0,0,0,0.06);
}
.gloss-term { font-weight:900; font-size:15px; color:var(--purple); margin-bottom:6px; }
.gloss-def { font-size:13.5px; line-height:1.55; color:var(--body); font-weight:600; }

/* ---------------- cta + footer ---------------- */

.cta { background:linear-gradient(135deg,var(--ink),var(--purple-dark)); padding:96px 24px 72px; text-align:center; }
.cta-inner { max-width:680px; margin:0 auto; }
.cta .pill {
  box-shadow:3px 3px 0 rgba(0,0,0,0.35);
  transform:rotate(1.5deg);
  animation:psFloat 4s ease-in-out infinite;
}
.cta h2 { font-size:44px; font-weight:900; color:#FFFFFF; margin:26px 0 16px; text-wrap:balance; }
.cta p { font-size:17px; color:#D5CDE8; font-weight:600; line-height:1.6; margin:0 0 36px; }

.site-footer {
  max-width:1160px; margin:72px auto 0;
  padding-top:28px;
  border-top:1px dashed rgba(255,255,255,0.25);
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:16px;
}
.foot-brand { display:flex; align-items:center; gap:8px; color:#D5CDE8; font-weight:800; font-size:14px; }
.foot-brand span { color:var(--gold); }
.foot-links { display:flex; gap:24px; font-weight:700; font-size:13px; list-style:none; margin:0; padding:0; }
.foot-links a { color:#B7ABD6; }
.foot-links a:hover { color:#FFFFFF; }
.foot-legal { color:#8A7BB5; font-weight:600; font-size:12px; }
.foot-legal a { color:#8A7BB5; text-decoration:underline; text-decoration-color:rgba(138,123,181,0.5); }
.foot-legal a:hover { color:#D5CDE8; }

/* ---------------- citations & sources ---------------- */

/* Small, quiet superscript markers — present without competing with the copy. */
.cite { font-size:0.68em; margin-left:2px; white-space:nowrap; font-weight:700; }
.cite a { color:#ABA0C7; text-decoration:none; }
.cite a:hover { color:var(--purple); text-decoration:underline; }
/* On the dark opportunity band, shift toward the lighter footer-link tone for contrast. */
.opp .cite a { color:#9C90BE; }
.opp .cite a:hover { color:#FFFFFF; }

/* Collapsed by default: exists on the page, doesn't compete for attention. */
.refs { max-width:680px; margin:56px auto 0; padding:0 24px; }
.refs summary {
  cursor:pointer; list-style:none;
  display:inline-flex; align-items:center; gap:6px;
  font-weight:800; font-size:12px; letter-spacing:1.5px;
  text-transform:uppercase; color:#8A7BB5;
}
.refs summary::-webkit-details-marker { display:none; }
.refs summary::before { content:'+'; font-size:14px; line-height:1; }
.refs[open] summary::before { content:'\2212'; }
.refs summary:hover { color:#B7ABD6; }
.refs ol { margin:14px 0 0; padding-left:20px; }
.refs li { font-size:12px; line-height:1.7; color:#8A7BB5; margin-bottom:7px; }
.refs li a { color:#8A7BB5; text-decoration:underline; text-decoration-color:rgba(138,123,181,0.5); }
.refs li a:hover { color:#D5CDE8; }

/* ---------------- inner pages (blog / page / 404) ---------------- */

.site-main { padding:72px 24px 88px; }
.site-main .page-header h1,
.site-main .entry-title { font-size:40px; font-weight:900; color:var(--ink); margin:0 0 24px; }
.site-main article { margin-bottom:48px; }
.site-main .entry-content,
.site-main .entry-summary { font-size:17px; line-height:1.7; color:var(--body); font-weight:600; }
.site-main .entry-content a { text-decoration:underline; }

/* WordPress core alignment / caption classes */
.alignleft { float:left; margin:0 24px 16px 0; }
.alignright { float:right; margin:0 0 16px 24px; }
.aligncenter { display:block; margin:0 auto 16px; }
.wp-caption { max-width:100%; }
.wp-caption-text { font-size:13px; color:var(--body); text-align:center; }
img { max-width:100%; height:auto; }

/* ---------------- responsive ---------------- */

@media (max-width:640px) {
  .hero h1 { font-size:38px; }
  .section-head h2, .cta h2 { font-size:30px; }
  .nav-links { gap:16px; font-size:14px; }
}

/* Respect users who ask for less motion. */
@media (prefers-reduced-motion:reduce) {
  * { animation:none !important; transition:none !important; }
}
