/*
Theme Name: Stanzie Benz
Theme URI: https://stanziebenz.com
Description: Custom editorial theme for Stanzie Benz - Quantitative Market Analysis
Author: Stanzie Benz
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
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: stanziebenz
*/

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --color-bg: #ffffff;
  --color-bg-light: #f8f8fa;
  --color-bg-card: #ffffff;
  --color-text: #1a1a2e;
  --color-text-secondary: #555566;
  --color-text-muted: #999;
  --color-accent: #1a1a2e;
  --color-accent-hover: #2d2d44;
  --color-cta: #1a1a2e;
  --color-cta-hover: #2d2d44;
  --color-border: #e5e5ea;
  --color-border-light: #f0f0f4;
  --color-banner: #c8a84e;
  --color-banner-text: #1a1a2e;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --max-width: 1200px;
  --header-height: 72px;
  --transition: all 0.25s ease;
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ========================================
   ANNOUNCEMENT BANNER
   ======================================== */
.announcement-bar {
  background-color: var(--color-banner);
  color: var(--color-banner-text);
  text-align: center;
  padding: 10px 40px;
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  z-index: 1001;
}

.announcement-bar a {
  color: var(--color-banner-text);
  text-decoration: underline;
  font-weight: 600;
}

.announcement-bar .close-banner {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-banner-text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.announcement-bar .close-banner:hover {
  opacity: 1;
}

.announcement-bar.hidden {
  display: none;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
}

.site-logo .logo-icon {
  width: 34px;
  height: 38px;
  overflow: hidden;
  flex-shrink: 0;
}

.site-logo .logo-icon img {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: left center;
}

.site-logo .logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  white-space: nowrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.primary-nav a:hover {
  color: var(--color-text-secondary);
}

/* Header Buttons */
.btn-signin {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.btn-signin:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

.btn-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff !important;
  background-color: var(--color-cta);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}

.btn-subscribe:hover {
  background-color: var(--color-cta-hover);
  color: #ffffff !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background-color: var(--color-bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Cdefs%3E%3Cpattern id='grid' width='60' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 60 0 L 0 0 0 40' fill='none' stroke='%231a1a2e' stroke-width='0.5' opacity='0.06'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='800' height='600' fill='url(%23grid)'/%3E%3Cline x1='60' y1='220' x2='60' y2='400' stroke='%2322c55e' stroke-width='1' opacity='0.12'/%3E%3Crect x='54' y='250' width='12' height='80' fill='%2322c55e' opacity='0.09'/%3E%3Cline x1='180' y1='200' x2='180' y2='380' stroke='%2322c55e' stroke-width='1' opacity='0.12'/%3E%3Crect x='174' y='230' width='12' height='70' fill='%2322c55e' opacity='0.08'/%3E%3Cline x1='300' y1='140' x2='300' y2='340' stroke='%2322c55e' stroke-width='1' opacity='0.12'/%3E%3Crect x='294' y='170' width='12' height='80' fill='%2322c55e' opacity='0.09'/%3E%3Cline x1='420' y1='100' x2='420' y2='280' stroke='%2322c55e' stroke-width='1' opacity='0.12'/%3E%3Crect x='414' y='120' width='12' height='85' fill='%2322c55e' opacity='0.08'/%3E%3Cline x1='540' y1='90' x2='540' y2='260' stroke='%2322c55e' stroke-width='1' opacity='0.12'/%3E%3Crect x='534' y='110' width='12' height='80' fill='%2322c55e' opacity='0.09'/%3E%3Cline x1='660' y1='80' x2='660' y2='240' stroke='%2322c55e' stroke-width='1' opacity='0.12'/%3E%3Crect x='654' y='95' width='12' height='78' fill='%2322c55e' opacity='0.08'/%3E%3Cline x1='120' y1='150' x2='120' y2='370' stroke='%23ef4444' stroke-width='1' opacity='0.12'/%3E%3Crect x='114' y='190' width='12' height='100' fill='%23ef4444' opacity='0.08'/%3E%3Cline x1='240' y1='160' x2='240' y2='360' stroke='%23ef4444' stroke-width='1' opacity='0.12'/%3E%3Crect x='234' y='200' width='12' height='90' fill='%23ef4444' opacity='0.09'/%3E%3Cline x1='360' y1='120' x2='360' y2='310' stroke='%23ef4444' stroke-width='1' opacity='0.12'/%3E%3Crect x='354' y='140' width='12' height='95' fill='%23ef4444' opacity='0.08'/%3E%3Cline x1='480' y1='130' x2='480' y2='320' stroke='%23ef4444' stroke-width='1' opacity='0.12'/%3E%3Crect x='474' y='160' width='12' height='75' fill='%23ef4444' opacity='0.09'/%3E%3Cline x1='600' y1='110' x2='600' y2='290' stroke='%23ef4444' stroke-width='1' opacity='0.12'/%3E%3Crect x='594' y='135' width='12' height='85' fill='%23ef4444' opacity='0.08'/%3E%3Cline x1='720' y1='100' x2='720' y2='270' stroke='%23ef4444' stroke-width='1' opacity='0.12'/%3E%3Crect x='714' y='120' width='12' height='80' fill='%23ef4444' opacity='0.09'/%3E%3Cpolyline points='30,350 90,280 150,310 210,260 270,240 330,200 390,180 450,190 510,140 570,155 630,120 690,105 750,115' fill='none' stroke='%231a1a2e' stroke-width='1.5' opacity='0.07'/%3E%3Cpolyline points='30,320 90,300 150,295 210,270 270,250 330,225 390,205 450,195 510,175 570,160 630,140 690,130 750,125' fill='none' stroke='%231a1a2e' stroke-width='1' opacity='0.05' stroke-dasharray='6,4'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.5) 100%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background-color: var(--color-cta);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.hero-cta:hover {
  background-color: var(--color-cta-hover);
  color: #ffffff;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-chart {
  width: 420px;
  height: 360px;
}

.hero-chart svg {
  width: 100%;
  height: 100%;
}

@keyframes drawLine {
  0% { stroke-dashoffset: 1200; }
  40% { stroke-dashoffset: 0; }
  85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1200; }
}

@keyframes drawLineSlow {
  0% { stroke-dashoffset: 1200; }
  10% { stroke-dashoffset: 1200; }
  50% { stroke-dashoffset: 0; }
  85% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1200; }
}

@keyframes fadeInDot {
  0% { opacity: 0; transform: scale(0); }
  30% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes barGrow {
  0% { transform: scaleY(0); }
  15% { transform: scaleY(1); }
  80% { transform: scaleY(1); }
  100% { transform: scaleY(0); }
}

.chart-line {
  stroke-dasharray: 1200;
  animation: drawLine 8s ease-in-out infinite;
}

.chart-line-ma {
  stroke-dasharray: 1200;
  animation: drawLineSlow 8s ease-in-out infinite;
}

.chart-dot {
  opacity: 0;
  animation: fadeInDot 8s ease-in-out infinite;
}

.chart-dot:nth-child(1) { animation-delay: 0.3s; }
.chart-dot:nth-child(2) { animation-delay: 0.6s; }
.chart-dot:nth-child(3) { animation-delay: 0.9s; }
.chart-dot:nth-child(4) { animation-delay: 1.2s; }
.chart-dot:nth-child(5) { animation-delay: 1.5s; }
.chart-dot:nth-child(6) { animation-delay: 1.8s; }
.chart-dot:nth-child(7) { animation-delay: 2.1s; }

.chart-dot-pulse {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.chart-dot-pulse:nth-child(2n) {
  animation-delay: -1.2s;
}

.chart-bar {
  transform-origin: bottom;
  animation: barGrow 8s ease-in-out infinite;
  opacity: 0.7;
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.3s; }
.chart-bar:nth-child(4) { animation-delay: 0.4s; }
.chart-bar:nth-child(5) { animation-delay: 0.5s; }
.chart-bar:nth-child(6) { animation-delay: 0.6s; }
.chart-bar:nth-child(7) { animation-delay: 0.7s; }
.chart-bar:nth-child(8) { animation-delay: 0.8s; }
.chart-bar:nth-child(9) { animation-delay: 0.9s; }
.chart-bar:nth-child(10) { animation-delay: 1.0s; }
.chart-bar:nth-child(11) { animation-delay: 1.1s; }
.chart-bar:nth-child(12) { animation-delay: 1.2s; }

/* ========================================
   PRESS / AS FEATURED ON
   ======================================== */
.press-section {
  padding: 50px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.press-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.press-logos span {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: #aaa;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.press-logos span:hover {
  opacity: 0.8;
}

/* ========================================
   CONTENT CARDS SECTION
   ======================================== */
.solutions-section {
  padding: 80px 0 100px;
  background-color: var(--color-bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.section-header p {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.content-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 36px 30px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.content-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
  border-color: #ddd;
}

.card-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.card-label.premium {
  color: var(--color-banner);
}

.card-label.free {
  color: #34a853;
}

.content-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
  line-height: 1.3;
}

.content-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  transition: var(--transition);
}

.card-link:hover {
  gap: 10px;
}

.card-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

/* Second row - 2 column cards */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 28px;
}

/* ========================================
   CTA / SIGNUP SECTION
   ======================================== */
.cta-section {
  padding: 100px 0;
  text-align: center;
  background-color: var(--color-bg);
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background-color: var(--color-cta);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: var(--color-cta-hover);
  color: #ffffff;
}

/* ========================================
   DISCLAIMER
   ======================================== */
.disclaimer-section {
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg-light);
}

.disclaimer-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.disclaimer-content h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.disclaimer-content p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 56px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  padding: 3px 0;
}

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--color-text);
  border-color: var(--color-text);
  color: #fff;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   WORDPRESS CONTENT STYLES
   ======================================== */
.page-content {
  padding: 100px 0 80px;
  min-height: 60vh;
}

.page-content .container {
  max-width: 800px;
}

.page-content h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.page-content h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 16px;
}

.page-content h3 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.page-content ul,
.page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }

.page-content li {
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.page-content img {
  border-radius: 8px;
  margin: 24px 0;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.page-content th,
.page-content td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
}

.page-content th {
  background-color: var(--color-bg-light);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.page-content td {
  color: var(--color-text-secondary);
}

/* ========================================
   PMPro FORM OVERRIDES
   ======================================== */
#pmpro_form,
.pmpro_checkout,
.pmpro_card,
.pmpro_account {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 30px;
  color: var(--color-text);
}

#pmpro_form label,
.pmpro_checkout label {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
}

#pmpro_form input[type="text"],
#pmpro_form input[type="email"],
#pmpro_form input[type="password"],
#pmpro_form input[type="tel"],
#pmpro_form input[type="number"],
#pmpro_form select,
#pmpro_form textarea,
.pmpro_checkout input[type="text"],
.pmpro_checkout input[type="email"],
.pmpro_checkout input[type="password"],
.pmpro_checkout select,
.pmpro_checkout textarea {
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  width: 100%;
  transition: var(--transition);
}

#pmpro_form input:focus,
.pmpro_checkout input:focus,
#pmpro_form select:focus,
#pmpro_form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}

#pmpro_form .pmpro_btn,
.pmpro_btn,
input[type="submit"].pmpro_btn {
  background-color: var(--color-cta) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 12px 28px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}

#pmpro_form .pmpro_btn:hover,
.pmpro_btn:hover,
input[type="submit"].pmpro_btn:hover {
  background-color: var(--color-cta-hover) !important;
}

.pmpro_message {
  background-color: var(--color-bg-light);
  border-left: 4px solid var(--color-accent);
  color: var(--color-text-secondary);
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.pmpro_message.pmpro_error {
  border-left-color: #dc3545;
}

.pmpro_message.pmpro_success {
  border-left-color: #34a853;
}

/* PMPro Account Page */
.pmpro_account-membership,
.pmpro_account-profile,
.pmpro_account-invoices,
.pmpro_account-links {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}

/* ========================================
   WP BLOCK OVERRIDES
   ======================================== */
.wp-block-button .wp-block-button__link {
  background-color: var(--color-cta);
  border-radius: 6px;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.wp-block-separator {
  border-color: var(--color-border);
}

.wp-block-quote {
  border-left: 4px solid var(--color-accent);
  padding-left: 20px;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .press-logos {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .header-left {
    gap: 0;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background-color: var(--color-bg);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    align-items: stretch;
    padding: 90px 24px 40px;
    gap: 2px;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 999;
  }

  .primary-nav.open {
    right: 0;
  }

  .primary-nav a {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border-light);
  }

  .header-right {
    display: none;
  }

  .primary-nav .mobile-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 998;
  }

  .mobile-overlay.active {
    display: block;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    order: -1;
  }

  .hero-chart {
    width: 300px;
    height: 260px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid-2 {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .press-logos {
    gap: 24px;
  }

  .press-logos span {
    font-size: 1.1rem;
  }

  .announcement-bar {
    font-size: 0.78rem;
    padding: 8px 36px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    padding: 12px 28px;
    font-size: 0.85rem;
  }

  .content-card {
    padding: 28px 22px;
  }

  .container {
    padding: 0 20px;
  }
}

/* Hide mobile-only elements on desktop */
@media (min-width: 769px) {
  .mobile-buttons {
    display: none;
  }

  .mobile-overlay {
    display: none;
  }
}
