/*
Theme Name: Tarot Engine
Theme URI: https://tarotengine.com
Author: Patrick / Business Game Changer
Author URI: https://businessgamechanger.biz
Description: Premium WordPress theme for Tarot Engine — a longitudinal personal intelligence system built around Decision Tension Index, pattern recognition, and personality-based tarot interpretation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tarot-engine
Tags: one-column, two-columns, custom-colors, custom-header, custom-menu, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ==========================================================================
   TAROT ENGINE — Design System Tokens
   Palette: Crisp Parchment + Electric Purple + Deep Gold
   ========================================================================== */

:root {
  /* Core Palette */
  --te-surface:           #faf9f6;
  --te-surface-low:       #f4f3f1;
  --te-surface-high:      #e9e8e5;
  --te-surface-white:     #ffffff;
  --te-surface-card:      #fffffe;

  --te-primary:           #7d22e3;
  --te-primary-deep:      #6100ba;
  --te-primary-soft:      rgba(125, 34, 227, 0.08);
  --te-primary-glow:      rgba(125, 34, 227, 0.18);

  --te-gold:              #c9a14a;
  --te-gold-soft:         #f5e9cc;
  --te-gold-deep:         #a07c28;

  --te-on-surface:        #1a1c1a;
  --te-on-surface-mid:    #4a4a4a;
  --te-on-surface-light:  #787878;

  --te-outline:           rgba(125, 34, 227, 0.12);
  --te-outline-solid:     #cec2d8;

  /* Gradient */
  --te-grad-primary:      linear-gradient(135deg, #6100ba 0%, #7d22e3 50%, #9b44f0 100%);
  --te-grad-gold:         linear-gradient(135deg, #a07c28 0%, #c9a14a 50%, #e8c76a 100%);
  --te-grad-hero:         linear-gradient(160deg, #faf9f6 0%, #f0eaf8 40%, #faf9f6 100%);
  --te-grad-card:         linear-gradient(145deg, #ffffff 0%, #f8f5ff 100%);

  /* Typography */
  --ff-display:           'Newsreader', Georgia, serif;
  --ff-body:              'Manrope', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --te-radius-sm:         0.375rem;
  --te-radius-md:         0.625rem;
  --te-radius-lg:         1rem;
  --te-radius-xl:         1.5rem;
  --te-radius-pill:       999px;

  /* Shadows */
  --te-shadow-sm:         0 2px 12px rgba(26, 28, 26, 0.06);
  --te-shadow-md:         0 8px 32px rgba(26, 28, 26, 0.08);
  --te-shadow-lg:         0 20px 60px rgba(26, 28, 26, 0.10);
  --te-shadow-purple:     0 8px 32px rgba(97, 0, 186, 0.20);

  /* Transitions */
  --te-ease:              cubic-bezier(0.22, 1, 0.36, 1);
  --te-dur-fast:          180ms;
  --te-dur-med:           320ms;
  --te-dur-slow:          560ms;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--te-surface);
  color: var(--te-on-surface);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Canvas dot pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(125, 34, 227, 0.045) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--te-primary); text-decoration: none; transition: color var(--te-dur-fast) var(--te-ease); }
a:hover { color: var(--te-primary-deep); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--te-on-surface);
  letter-spacing: -0.02em;
}

p { margin-bottom: 1.2em; color: var(--te-on-surface-mid); }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5em; margin-bottom: 1.2em; }
blockquote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.25rem;
  border-left: 3px solid var(--te-primary);
  padding: 0.75em 1.5em;
  margin: 2em 0;
  color: var(--te-on-surface);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.te-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.te-container--wide {
  max-width: 1440px;
}

.te-container--narrow {
  max-width: 860px;
}

.site-content { position: relative; z-index: 1; }

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--te-outline);
  transition: box-shadow var(--te-dur-med) var(--te-ease);
}

.site-header.scrolled {
  box-shadow: var(--te-shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.1rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
}

/* Logo */
.site-header__logo a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--te-on-surface);
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.site-header__logo-icon {
  width: 34px;
  height: 34px;
  background: var(--te-grad-primary);
  border-radius: var(--te-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-header__logo-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.5;
}

.site-header__logo span.italic {
  font-style: italic;
  color: var(--te-primary);
}

/* Nav */
@media (min-width: 769px) {
  .main-navigation {
    display: flex;
    align-items: center;
  }
}

.main-navigation ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
}

.main-navigation ul li a {
  display: block;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--te-on-surface-mid);
  border-radius: var(--te-radius-sm);
  transition: all var(--te-dur-fast) var(--te-ease);
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  color: var(--te-primary);
  background: var(--te-primary-soft);
}

/* Header CTA */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-family: var(--ff-body); font-weight: 700; letter-spacing: 0.02em; border: none; cursor: pointer; transition: all var(--te-dur-fast) var(--te-ease); text-decoration: none; }

.btn-primary {
  background: var(--te-grad-primary);
  color: #fff;
  padding: 0.55rem 1.35rem;
  border-radius: var(--te-radius-sm);
  font-size: 0.8125rem;
  box-shadow: var(--te-shadow-purple);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(97, 0, 186, 0.30);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: rgba(250,249,246,0.9);
  padding: 0.55rem 1.1rem;
  border-radius: var(--te-radius-sm);
  font-size: 0.8125rem;
  border: 1.5px solid rgba(250,249,246,0.35);
}

.btn-ghost:hover {
  background: rgba(250,249,246,0.1);
  color: #ffffff;
}

.btn-gold {
  background: var(--te-grad-gold);
  color: #fff;
  padding: 0.9rem 2.5rem;
  border-radius: var(--te-radius-sm);
  font-size: 0.9375rem;
  box-shadow: 0 8px 28px rgba(160, 124, 40, 0.28);
}

.btn-gold:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(160, 124, 40, 0.38);
}

.btn-large {
  padding: 1rem 2.75rem;
  font-size: 1rem;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--te-on-surface);
}

.menu-toggle svg {
  transition: transform 0.3s ease;
  display: block;
}

.menu-toggle.active svg {
  transform: rotate(90deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.te-hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  background: #1a1c1a;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* Dark overlay for readability */
.te-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 8, 20, 0.88) 0%,
    rgba(15, 10, 35, 0.82) 40%,
    rgba(10, 8, 20, 0.55) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.te-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #faf9f6);
  pointer-events: none;
  z-index: 1;
}

.te-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.te-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.te-hero__eyebrow-line {
  width: 2rem;
  height: 1px;
  background: rgba(201,161,74,0.7);
}

.te-hero__eyebrow span {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(201,161,74,0.9);
}

.te-hero__headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.te-hero__headline em {
  font-style: italic;
  color: #c9a14a;
  font-weight: 400;
}

.te-hero__sub {
  font-size: 1.1rem;
  color: rgba(250,249,246,0.85);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 460px;
}

.te-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.te-hero__trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(250,249,246,0.6);
  font-weight: 500;
}

.te-hero__trust-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(201,161,74,0.7);
}

/* Hero visual: DTI card */
.te-hero__visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.te-dti-card {
  background: var(--te-surface-white);
  border-radius: var(--te-radius-lg);
  padding: 2rem;
  box-shadow: var(--te-shadow-lg);
  border: 1px solid var(--te-outline);
  position: relative;
  overflow: hidden;
}

.te-dti-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--te-grad-primary);
}

.te-dti-card__label {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--te-primary);
  margin-bottom: 1.25rem;
}

.te-dti-card__score-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.te-dti-card__score {
  font-family: var(--ff-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--te-on-surface);
  line-height: 1;
}

.te-dti-card__score-label {
  font-size: 0.8125rem;
  color: var(--te-on-surface-light);
  font-weight: 500;
}

.te-dti-bar {
  height: 8px;
  background: var(--te-surface-high);
  border-radius: 99px;
  overflow: hidden;
  margin: 1rem 0 1.25rem;
}

.te-dti-bar__fill {
  height: 100%;
  background: var(--te-grad-primary);
  border-radius: 99px;
  width: 72%;
  transition: width 1.5s var(--te-ease);
}

.te-dti-card__cards {
  display: flex;
  gap: 0.75rem;
}

.te-mini-card {
  flex: 1;
  background: var(--te-surface-low);
  border-radius: var(--te-radius-md);
  padding: 0.875rem;
  text-align: center;
  border: 1px solid rgba(125, 34, 227, 0.08);
}

.te-mini-card__icon {
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.te-mini-card__name {
  font-family: var(--ff-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--te-on-surface);
  font-style: italic;
}

.te-mini-card__suit {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--te-primary);
  font-weight: 700;
  margin-top: 0.125rem;
}

/* Pattern card */
.te-pattern-card {
  background: var(--te-surface-white);
  border-radius: var(--te-radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--te-shadow-sm);
  border: 1px solid var(--te-outline);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.te-pattern-card__icon {
  width: 44px;
  height: 44px;
  background: var(--te-primary-soft);
  border-radius: var(--te-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.te-pattern-card__text { flex: 1; }
.te-pattern-card__title { font-size: 0.875rem; font-weight: 700; color: var(--te-on-surface); margin-bottom: 0.125rem; }
.te-pattern-card__sub { font-size: 0.75rem; color: var(--te-on-surface-light); }

.te-pattern-card__badge {
  background: var(--te-gold-soft);
  color: var(--te-gold-deep);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--te-radius-pill);
  text-transform: uppercase;
}

/* ==========================================================================
   SECTION SHARED STYLES
   ========================================================================== */

.te-section { padding: 5.5rem 0; }
.te-section--alt { background: var(--te-surface-low); }
.te-section--dark {
  background: var(--te-on-surface);
  color: #faf9f6;
}

.te-section-header { margin-bottom: 3.5rem; }
.te-section-header--center { text-align: center; }

.te-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--te-primary);
  margin-bottom: 1rem;
}

.te-eyebrow-line {
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--te-primary);
}

.te-heading-xl {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--te-on-surface);
  margin-bottom: 1.25rem;
}

.te-heading-xl em {
  font-style: italic;
  color: var(--te-primary);
}

.te-heading-lg {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--te-on-surface);
  margin-bottom: 1rem;
}

.te-heading-md {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--te-on-surface);
}

.te-lead {
  font-size: 1.125rem;
  color: var(--te-on-surface-mid);
  line-height: 1.75;
  font-weight: 400;
}

/* ==========================================================================
   FEATURES / HOW IT WORKS
   ========================================================================== */

.te-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.te-feature-card {
  background: var(--te-surface-white);
  border-radius: var(--te-radius-lg);
  padding: 2rem;
  box-shadow: var(--te-shadow-sm);
  border: 1px solid var(--te-outline);
  transition: transform var(--te-dur-med) var(--te-ease), box-shadow var(--te-dur-med) var(--te-ease);
  position: relative;
  overflow: hidden;
}

.te-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--te-shadow-md);
}

.te-feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--te-grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--te-dur-med) var(--te-ease);
}

.te-feature-card:hover::after { transform: scaleX(1); }

.te-feature-card__icon {
  width: 52px;
  height: 52px;
  background: var(--te-primary-soft);
  border-radius: var(--te-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(125, 34, 227, 0.12);
}

.te-feature-card__title {
  font-family: var(--ff-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--te-on-surface);
  margin-bottom: 0.5rem;
}

.te-feature-card__text {
  font-size: 0.9rem;
  color: var(--te-on-surface-mid);
  line-height: 1.7;
}

/* ==========================================================================
   DTI EXPLAINER SECTION
   ========================================================================== */

.te-dti-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.te-dti-visual {
  background: var(--te-surface-white);
  border-radius: var(--te-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--te-shadow-lg);
  border: 1px solid var(--te-outline);
}

.te-dti-visual__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--te-surface-high);
}

.te-dti-visual__title {
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--te-on-surface);
}

.te-dti-visual__date {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--te-on-surface-light);
}

.te-dti-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.te-dti-row__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--te-on-surface-mid);
  width: 90px;
  flex-shrink: 0;
}

.te-dti-row__bar {
  flex: 1;
  height: 6px;
  background: var(--te-surface-high);
  border-radius: 99px;
  overflow: hidden;
}

.te-dti-row__fill {
  height: 100%;
  border-radius: 99px;
  background: var(--te-grad-primary);
}

.te-dti-row__score {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--te-primary);
  width: 32px;
  text-align: right;
}

.te-dti-quote {
  margin-top: 1.75rem;
  padding: 1.25rem;
  background: var(--te-primary-soft);
  border-radius: var(--te-radius-md);
  border-left: 3px solid var(--te-primary);
}

.te-dti-quote p {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--te-on-surface);
  line-height: 1.6;
  margin: 0;
}

.te-dti-quote__source {
  margin-top: 0.5rem !important;
  font-family: var(--ff-body) !important;
  font-style: normal !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--te-primary) !important;
}

/* ==========================================================================
   ARCHETYPE CARDS ROW
   ========================================================================== */

.te-archetypes {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.te-archetypes::-webkit-scrollbar { display: none; }

.te-archetype-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--te-surface-white);
  border-radius: var(--te-radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--te-shadow-sm);
  border: 1px solid var(--te-outline);
  transition: transform var(--te-dur-med) var(--te-ease), box-shadow var(--te-dur-med) var(--te-ease);
  cursor: pointer;
}

.te-archetype-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--te-shadow-purple);
}

.te-archetype-card__symbol {
  width: 60px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--te-grad-card);
  border-radius: var(--te-radius-sm);
  border: 1px solid var(--te-outline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: relative;
  overflow: hidden;
}

.te-archetype-card__symbol::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--te-grad-primary);
  opacity: 0;
  transition: opacity var(--te-dur-med) var(--te-ease);
}

.te-archetype-card:hover .te-archetype-card__symbol::before { opacity: 0.06; }

.te-archetype-card__name {
  font-family: var(--ff-display);
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--te-on-surface);
  margin-bottom: 0.25rem;
}

.te-archetype-card__keyword {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--te-primary);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.te-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.te-testimonial {
  background: var(--te-surface-white);
  border-radius: var(--te-radius-lg);
  padding: 2rem;
  box-shadow: var(--te-shadow-sm);
  border: 1px solid var(--te-outline);
  position: relative;
}

.te-testimonial__quote-mark {
  font-family: var(--ff-display);
  font-size: 4rem;
  line-height: 0.5;
  color: var(--te-primary-soft);
  font-style: italic;
  margin-bottom: 1rem;
  display: block;
}

.te-testimonial__text {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--te-on-surface);
  margin-bottom: 1.5rem;
}

.te-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.te-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--te-grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.te-testimonial__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--te-on-surface);
  line-height: 1.2;
}

.te-testimonial__role {
  font-size: 0.75rem;
  color: var(--te-on-surface-light);
}

/* ==========================================================================
   PRICING
   ========================================================================== */

.te-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.te-pricing-card {
  background: var(--te-surface-white);
  border-radius: var(--te-radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: var(--te-shadow-sm);
  border: 1px solid var(--te-outline);
  transition: transform var(--te-dur-med) var(--te-ease), box-shadow var(--te-dur-med) var(--te-ease);
}

.te-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--te-shadow-md);
}

.te-pricing-card--featured {
  background: var(--te-on-surface);
  border-color: var(--te-on-surface);
  position: relative;
  overflow: hidden;
}

.te-pricing-card--featured::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: var(--te-primary);
  opacity: 0.12;
  border-radius: 50%;
  pointer-events: none;
}

.te-pricing-card--featured .te-pricing-card__name,
.te-pricing-card--featured .te-pricing-card__price,
.te-pricing-card--featured .te-pricing-card__desc,
.te-pricing-card--featured .te-pricing-feature { color: #faf9f6; }
.te-pricing-card--featured .te-pricing-feature { color: rgba(250,249,246,0.75); }

.te-pricing-badge {
  display: inline-block;
  background: var(--te-grad-gold);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: var(--te-radius-pill);
  margin-bottom: 1.5rem;
}

.te-pricing-card__name {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--te-on-surface);
  margin-bottom: 0.5rem;
}

.te-pricing-card__desc {
  font-size: 0.875rem;
  color: var(--te-on-surface-mid);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.te-pricing-card__price {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--te-on-surface);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.te-pricing-card__price sup {
  font-size: 1.25rem;
  font-weight: 500;
  vertical-align: super;
}

.te-pricing-card__period {
  font-size: 0.8125rem;
  color: var(--te-on-surface-light);
  margin-bottom: 2rem;
}

.te-pricing-divider {
  height: 1px;
  background: var(--te-surface-high);
  margin-bottom: 1.5rem;
}

.te-pricing-card--featured .te-pricing-divider {
  background: rgba(250,249,246,0.12);
}

.te-pricing-features { list-style: none; padding: 0; margin: 0 0 2rem; }
.te-pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--te-on-surface-mid);
  padding: 0.4rem 0;
}

.te-pricing-feature::before {
  content: '✦';
  color: var(--te-primary);
  font-size: 0.625rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.te-pricing-card--featured .te-pricing-feature::before { color: var(--te-gold); }

/* ==========================================================================
   CTA BANNER
   ========================================================================== */

.te-cta-banner {
  background: var(--te-on-surface);
  border-radius: var(--te-radius-xl);
  padding: 4.5rem 3.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.te-cta-banner::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(125, 34, 227, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.te-cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(201, 161, 74, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.te-cta-banner__eyebrow {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--te-gold);
  margin-bottom: 1.25rem;
}

.te-cta-banner__headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: #faf9f6;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.te-cta-banner__headline em {
  font-style: italic;
  color: var(--te-gold);
}

.te-cta-banner__sub {
  font-size: 1rem;
  color: rgba(250,249,246,0.65);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.te-cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   SHORTCODE SECTION
   ========================================================================== */

.te-plugin-section {
  background: var(--te-surface-low);
  border-radius: var(--te-radius-xl);
  padding: 3.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--te-on-surface);
  color: rgba(250,249,246,0.7);
  padding: 4rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.site-footer__brand-name {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  color: #faf9f6;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.site-footer__brand-tagline {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  color: rgba(250,249,246,0.55);
}

.site-footer__col-title {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #faf9f6;
  margin-bottom: 1rem;
}

.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col ul li { margin-bottom: 0.6rem; }
.site-footer__col ul li a {
  font-size: 0.875rem;
  color: rgba(250,249,246,0.55);
  transition: color var(--te-dur-fast);
}

.site-footer__col ul li a:hover { color: var(--te-gold); }

.site-footer__bottom {
  border-top: 1px solid rgba(250,249,246,0.08);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer__legal {
  font-size: 0.8125rem;
  color: rgba(250,249,246,0.35);
}

.site-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(250,249,246,0.4);
}

.site-footer__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--te-gold);
  opacity: 0.7;
}

/* ==========================================================================
   WIDGET AREAS
   ========================================================================== */

.widget { margin-bottom: 2rem; }
.widget-title {
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--te-on-surface);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--te-primary-soft);
}

/* ==========================================================================
   SINGLE / BLOG POST
   ========================================================================== */

.te-post-header { padding: 4rem 0 3rem; border-bottom: 1px solid var(--te-outline); margin-bottom: 3rem; }
.te-post-meta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.25rem; }
.te-post-meta__item { font-size: 0.8125rem; color: var(--te-on-surface-light); }
.te-post-meta__cat {
  font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--te-primary); background: var(--te-primary-soft);
  padding: 0.2rem 0.65rem; border-radius: var(--te-radius-pill);
}

.entry-content h2 { font-size: 1.875rem; margin: 2.5rem 0 1rem; }
.entry-content h3 { font-size: 1.375rem; margin: 2rem 0 0.75rem; }
.entry-content p { font-size: 1.0625rem; line-height: 1.8; margin-bottom: 1.4em; }
.entry-content ul, .entry-content ol { margin-bottom: 1.4em; }
.entry-content li { font-size: 1.0625rem; line-height: 1.75; margin-bottom: 0.4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--te-radius-lg); margin: 2rem 0; }

/* ==========================================================================
   PAGE TEMPLATE: FULL WIDTH
   ========================================================================== */

.page-template-full-width .site-main { padding: 0; }

/* ==========================================================================
   UTILITY
   ========================================================================== */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes te-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes te-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(125, 34, 227, 0.3); }
  50%       { box-shadow: 0 0 0 10px rgba(125, 34, 227, 0); }
}

.te-animate-up {
  opacity: 0;
  animation: te-fade-up 0.7s var(--te-ease) forwards;
}

.te-animate-up--delay-1 { animation-delay: 0.1s; }
.te-animate-up--delay-2 { animation-delay: 0.2s; }
.te-animate-up--delay-3 { animation-delay: 0.3s; }
.te-animate-up--delay-4 { animation-delay: 0.4s; }

.te-float { animation: te-float 5s ease-in-out infinite; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .te-hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .te-dti-section__inner { grid-template-columns: 1fr; gap: 3rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .te-hero__visual { display: none; }
}

/* ── Tablet & Mobile shared ─────────────────────────────────── */
@media (max-width: 768px) {
  /* Global */
  html { overflow-x: hidden; }
  body { overflow-x: hidden; }
  .te-container { padding: 0 1.125rem; }
  .te-section { padding: 3rem 0; }

  /* ── Mobile menu ─────────────────────────────────────────── */
  .main-navigation {
    display: none !important;
    visibility: hidden;
  }

  .main-navigation.is-open {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    background: rgba(250,249,246,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-navigation.is-open ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 5rem 2rem 3rem;
    gap: 0;
    list-style: none;
    margin: 0;
  }

  .main-navigation.is-open ul li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(125,34,227,0.08);
  }

  .main-navigation.is-open ul li:last-child {
    border-bottom: none;
  }

  .main-navigation.is-open ul li a {
    display: block;
    font-size: 1.375rem;
    font-weight: 600;
    padding: 1.1rem 1rem;
    color: var(--te-on-surface);
    font-family: var(--ff-display);
    font-style: italic;
    letter-spacing: -0.02em;
  }

  .main-navigation.is-open ul li a:hover,
  .main-navigation.is-open ul li.current-menu-item > a {
    color: var(--te-primary);
    background: transparent;
  }

  /* Sub-menus on mobile */
  .main-navigation.is-open ul ul {
    min-height: auto;
    padding: 0;
    background: rgba(125,34,227,0.04);
  }

  .main-navigation.is-open ul ul li a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    font-style: normal;
    font-family: var(--ff-body);
    color: var(--te-on-surface-mid);
  }

  /* Toggle button */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--te-radius-sm);
    background: var(--te-primary-soft);
    position: relative;
    z-index: 10000;
  }

  /* No close button — hamburger toggles menu open and closed */

  /* Header actions on mobile */
  .site-header__actions .btn-ghost { display: none; }
  .site-header__actions .btn-primary { display: flex; font-size: 0.75rem; padding: 0.5rem 1rem; }

  /* ── Hero ────────────────────────────────────────────────── */
  .te-hero {
    padding: 3rem 0 2.5rem;
    overflow: hidden;
  }

  .te-hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .te-hero__visual { display: none; }

  .te-hero__headline {
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: -0.03em;
  }

  .te-hero__sub {
    font-size: 1rem;
  }

  .te-hero__actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .te-hero__actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }

  .te-hero__trust {
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.6875rem;
  }

  /* ── Features grid ───────────────────────────────────────── */
  .te-features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* ── DTI section ─────────────────────────────────────────── */
  .te-dti-section__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* ── Archetypes ──────────────────────────────────────────── */
  .te-archetypes {
    gap: 0.875rem;
    padding-bottom: 1rem;
  }

  .te-archetype-card {
    width: 130px;
  }

  /* ── Testimonials ────────────────────────────────────────── */
  .te-testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* ── Pricing ─────────────────────────────────────────────── */
  .te-pricing-grid { grid-template-columns: 1fr; }

  /* ── CTA banner ──────────────────────────────────────────── */
  .te-cta-banner { padding: 2.5rem 1.5rem; }
  .te-cta-banner__actions { flex-direction: column; gap: 0.75rem; }
  .te-cta-banner__actions .btn { width: 100%; justify-content: center; }

  /* ── Footer ──────────────────────────────────────────────── */
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom { flex-direction: column; text-align: center; }

  /* ── Plugin section ──────────────────────────────────────── */
  .te-plugin-section { padding: 1.5rem; }

  /* ── Reading CTA section ─────────────────────────────────── */
  .te-reading-cta { grid-template-columns: 1fr !important; gap: 2rem !important; }
}

/* ── Small phones ───────────────────────────────────────────── */
@media (max-width: 400px) {
  .te-container { padding: 0 1rem; }
  .te-hero__headline { font-size: 1.875rem; }
  .site-header__inner { padding: 0.875rem 1rem; }
  .site-header__logo a { font-size: 1.125rem; }
  .te-feature-card { padding: 1.5rem; }
  .te-pricing-card { padding: 1.75rem 1.25rem; }
}

/* ==========================================================================
   WORDPRESS CORE
   ========================================================================== */

.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignwide { margin-left: calc(50% - 50vw + 1.5rem); margin-right: calc(50% - 50vw + 1.5rem); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--te-on-surface-light); text-align: center; padding: 0.5rem 0; }

.sticky { position: relative; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* Comments */
.comment-form input, .comment-form textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--te-outline-solid);
  border-radius: var(--te-radius-sm);
  font-family: var(--ff-body); font-size: 0.9375rem;
  background: var(--te-surface-white);
  color: var(--te-on-surface);
  transition: border-color var(--te-dur-fast);
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none; border-color: var(--te-primary);
}
.comment-form .submit {
  background: var(--te-grad-primary); color: #fff;
  padding: 0.75rem 2rem; border: none; border-radius: var(--te-radius-sm);
  font-family: var(--ff-body); font-weight: 700; cursor: pointer;
  font-size: 0.9375rem; transition: all var(--te-dur-fast) var(--te-ease);
}
.comment-form .submit:hover { transform: translateY(-1px); box-shadow: var(--te-shadow-purple); }

.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--te-surface-white); border-radius: var(--te-radius-lg); padding: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--te-outline); }
