/*
Theme Name: Stop Fixing Yourself
Theme URI: https://stopfixyingyourself.com
Author: Timoteo Crnković
Author URI: https://timoteocrnkovic.com
Description: Landing page theme for Stop Fixing Yourself — the anti-self-help book.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: All rights reserved
Text Domain: stopfixing
*/

/* ══════════════════════════════════════
   CSS VARIABLES
   ══════════════════════════════════════ */
:root {
  --bg: #0A0908;
  --bg2: #111010;
  --bg3: #171615;
  --text: #C8C3BC;
  --dim: #7D7872;
  --bright: #EDEAE6;
  --red: #C82424;
  --red-h: #D93333;
  --red-dim: rgba(200,36,36,.12);
  --bdr: rgba(200,195,188,.06);
  --sf: 'Spectral', Georgia, serif;
  --ss: 'Sora', -apple-system, sans-serif;
}

/* ══════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ss);
  font-weight: 200;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; height: auto; display: block; }
a { transition: all .3s ease; }

/* ══════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════ */
.w { max-width: 660px; margin: 0 auto; padding: 0 28px; }
.ww { max-width: 880px; margin: 0 auto; padding: 0 28px; }

/* ══════════════════════════════════════
   NAV
   ══════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(10,9,8,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr);
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: var(--sf);
  font-size: 1rem;
  color: var(--bright);
  text-decoration: none;
}
.nav-cta {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  padding: 6px 16px;
  border: 1px solid rgba(200,36,36,.35);
  border-radius: 2px;
}
.nav-cta:hover {
  background: var(--red-dim);
  border-color: var(--red);
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--ss);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover {
  background: var(--red-h);
  transform: translateY(-1px);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--bdr);
}
.btn-ghost:hover {
  border-color: var(--dim);
  background: transparent;
  transform: translateY(-1px);
}

/* ══════════════════════════════════════
   SHARED ELEMENTS
   ══════════════════════════════════════ */
section { padding: 80px 0; }

.sep {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin: 0 auto;
}

.tag {
  font-family: var(--ss);
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  text-align: center;
}

.hd {
  font-family: var(--sf);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--bright);
  text-align: center;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.hd em { font-style: italic; color: var(--red); }

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}
.hero-tag {
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .7s ease .2s forwards;
}
.hero h1 {
  font-family: var(--sf);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 300;
  line-height: 1.18;
  color: var(--bright);
  letter-spacing: -.015em;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp .7s ease .35s forwards;
}
.hero h1 em { font-style: italic; color: var(--red); }
.hero-sub {
  font-size: .95rem;
  color: var(--dim);
  margin-bottom: 36px;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp .7s ease .5s forwards;
}
.hero-ctas {
  opacity: 0;
  animation: fadeUp .7s ease .65s forwards;
}
.hero-cover {
  opacity: 0;
  animation: fadeUp .7s ease .5s forwards;
}
.hero-cover img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 80px rgba(200,36,36,.07);
  transition: transform .5s ease;
}
.hero-cover img:hover { transform: scale(1.02); }

@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 660px;
  }
  .hero-cover {
    order: -1;
    max-width: 200px;
    margin: 0 auto;
  }
}

/* ══════════════════════════════════════
   STATS CHART
   ══════════════════════════════════════ */
.stats-section {
  background: var(--bg2);
  border-top: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
  padding: 72px 0;
}
.stats-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  height: 220px;
  margin: 36px auto 28px;
  max-width: 640px;
}
.stat-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 100px;
}
.stat-bar-pct {
  font-size: .72rem;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 6px;
}
.stat-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, var(--red), rgba(200,36,36,.3));
  border-radius: 2px 2px 0 0;
}
.stat-bar-label {
  font-size: .58rem;
  font-weight: 300;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
  margin-top: 10px;
  line-height: 1.3;
}
.stats-punch {
  text-align: center;
  font-family: var(--sf);
  font-size: 1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  max-width: 500px;
  margin: 28px auto 0;
  line-height: 1.7;
}

@media (max-width: 520px) {
  .stats-bars { gap: 8px; height: 160px; }
  .stat-bar-pct { font-size: .6rem; }
  .stat-bar-label { font-size: .5rem; }
}

/* ══════════════════════════════════════
   JAW EXPERIENCE
   ══════════════════════════════════════ */
.jaw-section {
  background: #150808;
  border-top: 1px solid rgba(200,36,36,.1);
  border-bottom: 1px solid rgba(200,36,36,.1);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.jaw-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(200,36,36,.06) 0%, transparent 70%);
  pointer-events: none;
}
.jaw-inner {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
.jaw-inner p {
  font-family: var(--sf);
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 12px;
}
.jaw-inner .jaw-big {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 500;
  margin: 28px 0;
}
.jaw-inner .jaw-end {
  font-size: .88rem;
  color: var(--red);
  font-style: italic;
  margin-top: 24px;
  opacity: .8;
}

/* ══════════════════════════════════════
   PROOF NUMBERS
   ══════════════════════════════════════ */
.proof-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.proof-item { text-align: center; }
.proof-num {
  font-family: var(--sf);
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--red);
  line-height: 1;
}
.proof-label {
  font-size: .65rem;
  color: var(--dim);
  margin-top: 4px;
}
.proof-quote {
  text-align: center;
  margin-top: 32px;
  font-family: var(--sf);
  font-size: .95rem;
  font-style: italic;
  font-weight: 300;
  color: var(--dim);
}

/* ══════════════════════════════════════
   NOT LIST
   ══════════════════════════════════════ */
.not-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 32px;
}
.not-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--bdr);
  border-radius: 3px;
}
.not-x {
  color: var(--red);
  font-weight: 600;
  font-size: .85rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.not-item p {
  font-size: .8rem;
  line-height: 1.55;
  color: var(--dim);
}

@media (max-width: 560px) {
  .not-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   INSIDE CARDS
   ══════════════════════════════════════ */
.inside-section {
  background: var(--bg2);
  border-top: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
}
.inside-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}
.inside-card {
  background: var(--bg);
  border: 1px solid var(--bdr);
  border-radius: 3px;
  padding: 20px;
  transition: border-color .3s;
}
.inside-card:hover { border-color: rgba(200,36,36,.15); }
.inside-card-label {
  font-size: .56rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
  opacity: .6;
}
.inside-card p {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--dim);
}

@media (max-width: 560px) {
  .inside-cards { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   EMAIL CAPTURE
   ══════════════════════════════════════ */
.capture-box {
  background: var(--bg2);
  border: 1px solid var(--bdr);
  border-radius: 4px;
  padding: 36px;
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}
.capture-box h3 {
  font-family: var(--sf);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--bright);
  margin-bottom: 8px;
}
.capture-box > p {
  font-size: .82rem;
  color: var(--dim);
  margin-bottom: 16px;
}
.capture-form {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.capture-form input[type="email"] {
  flex: 1;
  max-width: 220px;
  background: var(--bg);
  border: 1px solid var(--bdr);
  border-radius: 2px;
  padding: 12px 14px;
  font-family: var(--ss);
  font-size: .82rem;
  font-weight: 300;
  color: var(--text);
  outline: none;
  transition: border-color .3s;
}
.capture-form input::placeholder {
  color: var(--dim);
  opacity: .4;
}
.capture-form input:focus {
  border-color: var(--red);
}
.capture-note {
  font-size: .62rem;
  color: var(--dim);
  opacity: .4;
  margin-top: 10px;
}

@media (max-width: 460px) {
  .capture-form { flex-direction: column; }
  .capture-form input[type="email"] { max-width: 100%; }
  .capture-box { padding: 28px 20px; }
}

/* ══════════════════════════════════════
   AUTHOR
   ══════════════════════════════════════ */
.author-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}
.author-photo {
  width: 140px;
  height: 185px;
  background: var(--bg3);
  border: 1px solid var(--bdr);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.author-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-photo span {
  font-family: var(--sf);
  font-size: 2rem;
  color: var(--red);
  opacity: .2;
}
.author-text p {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--dim);
  margin-bottom: 10px;
}
.author-text p:first-of-type {
  color: var(--text);
  font-size: .92rem;
}
.author-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.author-cred {
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-dim);
  padding: 4px 10px;
  border-radius: 2px;
}
.author-link {
  display: inline-block;
  margin-top: 16px;
  font-size: .78rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--bdr);
  padding-bottom: 2px;
}
.author-link:hover { border-color: var(--red); }

@media (max-width: 560px) {
  .author-grid { grid-template-columns: 1fr; }
  .author-photo { width: 110px; height: 145px; margin: 0 auto; }
}

/* ══════════════════════════════════════
   FAQ
   ══════════════════════════════════════ */
.faq-item {
  border-bottom: 1px solid var(--bdr);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--bdr); }
.faq-q {
  font-family: var(--sf);
  font-size: .95rem;
  font-weight: 400;
  color: var(--bright);
  margin-bottom: 6px;
}
.faq-a {
  font-size: .82rem;
  line-height: 1.7;
  color: var(--dim);
}

/* ══════════════════════════════════════
   CLOSER
   ══════════════════════════════════════ */
.closer-section {
  text-align: center;
  padding: 88px 0;
}
.closer-quote {
  font-family: var(--sf);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: var(--dim);
  max-width: 400px;
  margin: 0 auto 36px;
}
.closer-quote em {
  color: var(--bright);
  font-style: italic;
}
.final-or {
  margin-top: 18px;
  font-size: .76rem;
  color: var(--dim);
}
.final-or a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,36,36,.3);
}
.final-or a:hover { border-color: var(--red); }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--bdr);
  padding: 28px 0;
  text-align: center;
}
.site-footer p {
  font-size: .65rem;
  color: var(--dim);
  opacity: .3;
  line-height: 1.8;
}

/* ══════════════════════════════════════
   GENERIC PAGE (legal, etc.)
   ══════════════════════════════════════ */
.page-content {
  padding: 140px 0 80px;
}
.page-content h1 {
  font-family: var(--sf);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--bright);
  margin-bottom: 32px;
}
.page-content p,
.page-content li {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--dim);
  margin-bottom: 16px;
}
.page-content a {
  color: var(--red);
  text-decoration: none;
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
