/* ════════════════════════════════════════════════════════════════
   META ADS LANDING PAGE v3 — "Validate it first"
   Ported from marketing-site-redesign/project/redesign/
   "Meta Ads Landing Page v3.html" (design source of truth).
   Standalone page (page-validate-idea.php): base.css is NOT loaded,
   so these styles own the whole document.
   ════════════════════════════════════════════════════════════════ */

/* ---------- Fonts (Satoshi local; mono + script via Google Fonts in the template) ---------- */
@font-face { font-family: "Satoshi"; font-weight: 500; font-display: swap; src: url("/wp-content/themes/plb/font/satoshi-500.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 700; font-display: swap; src: url("/wp-content/themes/plb/font/satoshi-700.woff2") format("woff2"); }
@font-face { font-family: "Satoshi"; font-weight: 900; font-display: swap; src: url("/wp-content/themes/plb/font/satoshi-900.woff2") format("woff2"); }

:root {
  --blue:   #3d61df;
  --green:  #21dd90;
  --yellow: #f3b900;
  --red:    #e81c72;
  --ink:    #151515;
  --paper:  #fbfaf6;
  --body:   #4b5563;
  --meta:   #6b7280;
  --faint:  #9ca3af;
  --line:   rgba(21,21,21,0.12);
  --line-soft: rgba(21,21,21,0.06);
  --sans: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --script: "Caveat", "Bradley Hand", cursive;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #fff; }
img { display: block; }

.shell { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.label {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--meta); font-weight: 500;
}

/* ---------- Primary CTA ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 16px 22px;
  background: var(--green); color: #0c1a12;
  border: 0; border-radius: 4px;
  font-family: var(--sans); font-weight: 900; font-size: 17px; letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.cta:hover { transform: translateY(-2px); background: #2bf09e; }
.cta:active { transform: translateY(0); transition-duration: 0.1s; }
.cta .arrow { font-weight: 700; font-size: 19px; transition: transform 0.3s var(--ease); }
.cta:hover .arrow { transform: translateX(4px); }
.cta[disabled] { opacity: 0.7; cursor: wait; transform: none; }

/* mono meta row */
.meta-row {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--meta);
  display: flex; flex-wrap: wrap; gap: 8px 16px;
}
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row span::before { content: "·"; color: var(--faint); font-weight: 700; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,246,0.85);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top-logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: -0.02em; }
.top-logo img { height: 22px; }
.top-note { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--meta); text-align: right; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: center; }

.slug {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta);
  margin-bottom: 36px;
}
.slug .rule { flex: 0 0 60px; height: 1px; background: var(--ink); }
.slug .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2.4s ease-in-out infinite; flex: none; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.85)} }
@media (prefers-reduced-motion: reduce) { .slug .pulse { animation: none; } }

.h1 {
  font-weight: 900;
  font-size: clamp(52px, 9.5vw, 124px);
  line-height: 0.95; letter-spacing: -0.05em;
  margin: 0; color: var(--ink);
}
.h1 .line { display: block; position: relative; }
.h1 .quiet { font-style: italic; font-weight: 500; color: var(--meta); }
.h1 .circled { display: inline-block; position: relative; color: var(--blue); }
.h1 .circled::before {
  content: "";
  position: absolute; left: -8%; top: -10%; right: -8%; bottom: -10%;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 80' preserveAspectRatio='none'><path d='M20,42 Q15,18 60,12 Q120,5 180,14 Q210,18 205,40 Q200,68 140,72 Q60,78 25,68 Q12,58 22,42' fill='none' stroke='%233d61df' stroke-width='3' stroke-linecap='round' stroke-dasharray='600' stroke-dashoffset='600'><animate attributeName='stroke-dashoffset' from='600' to='0' dur='1.6s' begin='0.6s' fill='freeze'/></path></svg>") no-repeat center / 100% 100%;
  pointer-events: none;
}
.hero-lead {
  margin: 26px 0 0;
  font-weight: 500; font-size: clamp(17px, 2vw, 20px); line-height: 1.5;
  color: #1f2937; max-width: 24em; letter-spacing: -0.01em; text-wrap: pretty;
}
.hero-lead em { font-style: normal; color: var(--blue); font-weight: 700; }
.hero-note {
  margin-top: 22px;
  font-family: var(--script);
  font-size: 23px; line-height: 1.2; color: var(--red);
  transform: rotate(-2deg); max-width: 300px;
}

/* ---------- The Validator ---------- */
.validator {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(21,21,21,0.12), 0 4px 12px rgba(21,21,21,0.05);
  padding: 24px 22px 20px;
  position: relative;
  max-width: 560px;
}
.validator-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.validator-head .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta); }
.validator-head .live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #10b981;
}
.validator-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .validator-head .live::before { animation: none; } }

.validator-input {
  width: 100%;
  font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 16px;
  min-height: 56px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.validator-input::placeholder { color: var(--faint); font-weight: 500; }
.validator-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,97,223,0.12); }
.validator.nudge .validator-input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,28,114,0.10); }
.validator-hint {
  margin: 10px 2px 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--faint);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.validator .cta { width: 100%; margin-top: 14px; display: flex; }

/* run output */
.run { margin-top: 18px; border-top: 1px dashed rgba(21,21,21,0.16); padding-top: 6px; display: none; }
.run.on { display: block; }
.run-line {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 2px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--body);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease);
}
.run-line.in { opacity: 1; transform: translateY(0); }
.run-line .dot {
  width: 9px; height: 9px; border-radius: 2px; flex: none;
  background: var(--c, var(--blue));
}
.run-line .state { margin-left: auto; flex: none; font-size: 11px; color: var(--faint); }
.run-line.done .state { color: #10b981; font-weight: 500; }
.run-verdict {
  margin-top: 14px; padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px;
  display: none;
  align-items: center; gap: 14px; flex-wrap: wrap;
}
.run-verdict.on { display: flex; }
.run-verdict .stamp {
  font-weight: 900; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #10b981; border: 2px solid var(--green);
  padding: 6px 9px; border-radius: 4px;
  transform: rotate(-3deg); flex: none;
}
.run-verdict p { margin: 0; font-weight: 700; font-size: 14.5px; line-height: 1.45; color: var(--ink); flex: 1; min-width: 180px; }
.run-verdict p small { display: block; font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: 0.04em; color: var(--meta); margin-top: 4px; }
.run-verdict .cta { width: 100%; margin-top: 4px; }

/* ---------- Marquee divider ---------- */
.marquee {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 52px; white-space: nowrap; width: max-content;
  animation: marquee 44s linear infinite;
  font-weight: 500; font-style: italic; font-size: 16px;
  color: var(--body); letter-spacing: -0.01em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 14px; }
.marquee-track span::after { content: "·"; color: #c0bdb5; font-size: 24px; line-height: 1; transform: translateY(-2px); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Section scaffolding ---------- */
.sec { padding: 88px 0; }
.sec + .sec { border-top: 1px solid var(--line-soft); }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: end; margin-bottom: 48px; }
.sec-head h2 {
  font-weight: 900;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.02; letter-spacing: -0.04em;
  margin: 14px 0 0; max-width: 12em; color: var(--ink);
  text-wrap: balance;
}
.sec-head h2 em { font-style: normal; color: var(--blue); }
.sec-head > p {
  font-weight: 500; font-size: 17px; line-height: 1.55;
  color: var(--body); max-width: 27em; margin: 0; text-wrap: pretty;
}

/* ---------- The Mistake (tappable ad hooks) ---------- */
.mistake-ideas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.mistake-ideas button {
  display: flex; align-items: baseline; gap: 16px; width: 100%;
  padding: 20px 2px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  font-family: var(--sans); font-weight: 900; font-size: clamp(18px, 3vw, 30px); letter-spacing: -0.025em;
  color: var(--ink); text-align: left;
  cursor: pointer;
  transition: background 0.3s ease, padding-left 0.3s ease;
}
.mistake-ideas button:hover { background: rgba(21,21,21,0.02); padding-left: 10px; }
.mistake-ideas button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mistake-ideas button::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px;
  background: var(--dot, var(--blue));
}
.mistake-ideas .try {
  margin-left: auto; flex: none;
  font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
  transition: color 0.2s ease;
}
.mistake-ideas button:hover .try { color: var(--blue); }
.mistake-punch {
  margin: 32px 0 0;
  font-weight: 500; font-size: clamp(20px, 2.8vw, 28px); line-height: 1.4; letter-spacing: -0.015em;
  color: var(--ink); max-width: 25em; text-wrap: pretty;
}
.mistake-punch strong { font-weight: 900; color: var(--red); }
.mistake-punch em { font-style: normal; font-weight: 900; color: var(--blue); }

/* ---------- Dossier (dark) ---------- */
.dossier { padding: 96px 0; background: var(--ink); color: var(--paper); overflow: hidden; }
.dossier .label { color: rgba(255,255,255,0.5); }
.dossier .sec-head { margin-bottom: 56px; }
.dossier .sec-head h2 { color: var(--paper); }
.dossier .sec-head h2 em { color: var(--green); }
.dossier .sec-head > p { color: rgba(255,255,255,0.65); }

.dossier-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: start; }

.doc {
  background: var(--paper); color: var(--ink);
  border-radius: 4px;
  padding: 32px 30px 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.2);
  position: relative;
  transform: rotate(-0.6deg);
  max-width: 560px;
}
.doc::before {
  content: ""; position: absolute; top: 16px; right: -10px;
  width: 32px; height: 58px;
  background: rgba(243,185,0,0.85);
  transform: rotate(8deg);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.doc-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.doc-head .meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--meta); }
.doc-head h3 { font-weight: 900; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.02em; line-height: 1.1; margin: 6px 0 0; text-wrap: balance; }
.doc-stamp {
  flex: none; align-self: center;
  font-weight: 900; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #10b981; border: 2px solid var(--green);
  padding: 6px 10px; border-radius: 4px;
  transform: rotate(6deg);
}
.doc-row {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(21,21,21,0.16);
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
}
.doc-row:last-of-type { border-bottom: 0; }
.doc-row .k { font-weight: 500; font-size: 14px; color: var(--body); }
.doc-row .k .src { display: block; font-family: var(--mono); font-size: 10px; color: var(--faint); margin-top: 2px; }
.doc-row .v { font-weight: 900; font-size: 16px; color: var(--ink); text-align: right; }
.doc-foot {
  margin-top: 4px; padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--meta);
}
.doc-foot b { color: #10b981; letter-spacing: 0.16em; }
.doc-caption { margin: 16px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); }

.dossier-points { display: flex; flex-direction: column; gap: 30px; margin-top: 8px; }
.dossier-points .item {
  border-left: 2px solid rgba(255,255,255,0.2); padding-left: 22px;
  transition: border-color 0.3s ease, padding-left 0.3s ease;
}
.dossier-points .item:hover { border-color: var(--green); padding-left: 30px; }
.dossier-points h5 { font-weight: 900; font-size: 21px; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--paper); }
.dossier-points h5 b { color: var(--accent, var(--green)); font-weight: 900; }
.dossier-points p { font-weight: 500; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.65); margin: 0; max-width: 36em; text-wrap: pretty; }

/* ---------- How it works ---------- */
.how-list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.how-step {
  display: grid; grid-template-columns: 72px 1fr; gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background 0.3s ease;
}
.how-step:hover { background: rgba(21,21,21,0.015); }
.how-num {
  font-weight: 900; font-size: clamp(48px, 8vw, 96px); line-height: 0.85; letter-spacing: -0.06em;
  color: var(--accent, var(--blue));
}
.how-num small {
  display: block; font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--meta); margin-top: 10px;
}
.how-body h3 { font-weight: 900; font-size: clamp(21px, 3vw, 30px); letter-spacing: -0.025em; margin: 0 0 10px; line-height: 1.08; }
.how-body p { margin: 0; font-weight: 500; font-size: 16px; line-height: 1.6; color: var(--body); max-width: 34em; text-wrap: pretty; }
.how-body p code {
  font-family: var(--mono); font-size: 13px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px;
  white-space: nowrap;
}
.how-aside {
  margin-top: 24px;
  font-family: var(--script);
  font-size: 23px; line-height: 1.25; color: var(--blue);
  transform: rotate(-1.5deg); max-width: 420px;
}

/* ---------- Proof ---------- */
.quotes {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.quote {
  margin: 0; padding: 30px 26px 28px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.3s ease;
}
.quote:hover { background: #fff; }
.quote blockquote {
  font-weight: 500; font-size: 18px; line-height: 1.45; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 18px;
}
.quote figcaption { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--meta); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.quote figcaption strong { font-family: var(--sans); font-weight: 900; font-size: 15px; color: var(--ink); letter-spacing: -0.01em; }

/* ---------- Closing CTA ---------- */
.close {
  padding: 110px 0; background: var(--blue); color: var(--paper);
  position: relative; overflow: hidden; text-align: center;
}
.close::before {
  content: ""; position: absolute; inset: 0;
  background: url("/wp-content/themes/plb/img/brand/pattern.webp") repeat;
  opacity: 0.35; mix-blend-mode: soft-light; pointer-events: none;
}
.close .inner { position: relative; }
.close h2 {
  font-weight: 900;
  font-size: clamp(40px, 8vw, 92px);
  line-height: 0.98; letter-spacing: -0.04em;
  margin: 0 auto; max-width: 12em; color: var(--paper);
  text-wrap: balance;
}
.close h2 em { font-style: italic; font-weight: 500; opacity: 0.78; }
.close .cta { margin-top: 44px; width: 100%; max-width: 380px; }
.close .meta-row { margin-top: 26px; justify-content: center; color: rgba(255,255,255,0.75); }
.close .meta-row span::before { content: "✓"; color: var(--green); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,0.55); padding: 30px 0 34px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot img { height: 18px; }
.foot nav { display: flex; gap: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.foot nav a:hover { color: #fff; }
.foot small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(251,250,246,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.sticky-cta.on { transform: translateY(0); }
.sticky-cta .cta { width: 100%; max-width: 560px; margin: 0 auto; display: flex; min-height: 52px; }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s var(--ease); }
  .reveal.in { opacity: 1; transform: translateY(0); }
}

/* ---------- Desktop ---------- */
@media (min-width: 920px) {
  .shell { padding: 0 56px; }
  .hero { padding: 88px 0 64px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .validator { justify-self: end; width: 100%; }
  .sec { padding: 112px 0; }
  .sec-head { grid-template-columns: 1fr 1fr; gap: 80px; margin-bottom: 64px; }
  .sec-head > p { justify-self: end; }
  .dossier { padding: 130px 0; }
  .dossier-grid { grid-template-columns: 1.15fr 1fr; gap: 80px; }
  .how-step { grid-template-columns: 140px 1fr; gap: 40px; padding: 44px 0; }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .quote { padding: 36px 40px 32px; }
  .close { padding: 150px 0; }
  .sticky-cta { display: none; }
}
