:root {
      --esp-brand: #FCB017;
      --esp-brand-dark: #e59b05;
      --esp-ink: #111111;
      --esp-text: #222222;
      --esp-bg-light: #f9fafb;
      --esp-white: #ffffff;
      --esp-line: rgba(0,0,0,.08);
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: 'Nunito', sans-serif;
      background: #f4f4f4;
      color: var(--esp-text);
      overflow-x: hidden;
    }

    h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-family: 'Nunito', sans-serif; }
    p { line-height: 1.7; color: #4b5563; }
    a { text-decoration: none; color: inherit; transition: 0.3s; }

    /* ================= LANDING PAGE SPECIFIC STYLES ================= */
    .container {
      max-width: 1140px;
      margin: 0 auto;
      padding: 0 20px;
    }

    /* Hero */
    .hero {
      background: radial-gradient(circle at top right, #222, #000);
      color: #fff;
      padding: 160px 0 100px;
      position: relative;
      overflow: hidden;
    }
    
    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      align-items: center;
    }

    .hero-content h1 {
      font-family: 'Nunito', sans-serif;
      font-weight: 700;
      font-size: clamp(40px, 5vw, 64px);
      color: var(--esp-brand);
      margin-bottom: 20px;
    }
    
    .hero-content h2 {
      font-size: 24px;
      font-weight: 300;
      margin-bottom: 30px;
      letter-spacing: 1px;
      color: #ddd;
    }

    .hero-tagline {
      font-size: 18px;
      border-left: 4px solid var(--esp-brand);
      padding-left: 20px;
      margin-bottom: 40px;
      font-style: italic;
      color: #aaa;
    }

    /* === 3D BOOK COVER CSS === */
    .book-container {
      perspective: 1000px;
      display: flex;
      justify-content: center;
    }
    
    .book {
      width: 300px;
      height: 450px;
      position: relative;
      transform-style: preserve-3d;
      transform: rotateY(-25deg) rotateX(5deg);
      transition: transform 0.5s ease;
      box-shadow: 20px 20px 50px rgba(0,0,0,0.55);
    }

    .book:hover {
      transform: rotateY(-15deg) rotateX(0deg) scale(1.02);
    }

    .book-front {
      position: absolute;
      width: 100%;
      height: 100%;
      background: url("https://eaglesecurityprotection.co.uk/wp-content/uploads/2025/12/Sabia-Kausers-Book-Cover.webp") no-repeat center center;
      background-size: cover;
      border: 1px solid #222;
      border-radius: 4px 8px 8px 4px;
      z-index: 2;
    }
    
    .book-front > * { display: none; }

    .book-spine {
      position: absolute;
      top: 0;
      left: 0;
      width: 40px;
      height: 100%;
      background: #000;
      transform: rotateY(-90deg) translateZ(20px);
      transform-origin: left;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--esp-brand);
      font-weight: bold;
      border-left: 1px solid #333;
    }
    
    .spine-text {
      writing-mode: vertical-rl;
      transform: rotate(180deg);
      letter-spacing: 2px;
      font-size: 14px;
    }

    /* Checkout Panel */
    .checkout-panel {
      background: #fff;
      max-width: 500px;
      margin: -60px auto 60px;
      border-radius: 12px;
      padding: 30px;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
      position: relative;
      z-index: 10;
      text-align: center;
      border: 1px solid #eee;
    }

    .price-tag {
      font-size: 48px;
      font-weight: 700;
      color: #111;
      margin-bottom: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;
    }

    .price-strike {
      font-size: 24px;
      color: #999;
      text-decoration: line-through;
      display: none;
    }

    .cta-btn {
      display: block;
      width: 100%;
      background: var(--esp-brand);
      color: #000;
      font-weight: 700;
      text-transform: uppercase;
      padding: 18px;
      border: none;
      border-radius: 8px;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 4px 14px rgba(252, 176, 23, 0.4);
    }

    .cta-btn:hover {
      transform: translateY(-2px);
      background: var(--esp-brand-dark);
    }

    /* --- NEW ODOMETER / MECHANICAL COUNTER STYLES --- */
    .counter-wrapper {
        background: #fdf8ec;
        border: 2px dashed #e5cc95;
        border-radius: 12px;
        padding: 20px;
        margin: 15px 0 25px;
        display: inline-block;
        width: 100%;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .odometer-container {
        display: inline-flex;
        align-items: center;
        background: #111; /* Mechanical background */
        border-radius: 6px;
        padding: 8px 10px;
        box-shadow: inset 0 2px 8px rgba(0,0,0,0.7);
        border: 3px solid #333;
        overflow: hidden;
    }

    .digit-window {
        width: 0.85em; /* Adjusted width so numbers don't get cut */
        height: 1.1em;
        overflow: hidden;
        position: relative;
        font-size: 50px; /* BIG FONT */
        font-weight: 900;
        line-height: 1.1em;
        color: #fff;
        margin: 0 1px;
        background: #1a1a1a;
        border-radius: 2px;
    }

    .digit-strip {
        display: flex;
        flex-direction: column;
        will-change: transform;
        /* Ease-out back simulates the mechanical "clunk" stop */
        transition: transform 1.5s cubic-bezier(0.1, 0.8, 0.2, 1); 
    }

    .digit-strip span {
        height: 1.1em;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 3D Cylindrical Shadow Overlay */
    .digit-overlay {
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: linear-gradient(to bottom, 
            rgba(0,0,0,0.9) 0%, 
            rgba(0,0,0,0.1) 30%, 
            rgba(255,255,255,0.1) 50%, 
            rgba(0,0,0,0.1) 70%, 
            rgba(0,0,0,0.9) 100%);
        pointer-events: none;
        z-index: 2;
        box-shadow: inset 0 0 2px rgba(0,0,0,0.5);
    }
    
    /* Animation class for updates (POP effect) */
    .counter-bump {
        animation: bumpEffect 0.4s ease-out;
        border-color: #FCB017 !important;
        background-color: #fff8e1 !important;
    }
    @keyframes bumpEffect {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }


    .redeem-box {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid #eee;
    }

    .redeem-toggle {
      color: #666;
      font-size: 14px;
      cursor: pointer;
      text-decoration: underline;
    }

    .redeem-input-group {
      display: none;
      margin-top: 15px;
      gap: 10px;
    }
    
    .redeem-input-group.active { display: flex; }

    .redeem-input {
      flex: 1;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 14px;
      text-transform: uppercase;
    }

    .apply-btn {
      background: #333;
      color: #fff;
      border: none;
      padding: 0 15px;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 700;
    }

    .success-msg {
      color: green;
      font-size: 13px;
      margin-top: 5px;
      display: none;
      font-weight: bold;
    }

    /* Content Sections */
    .content-section { padding: 70px 0 60px; }

    .section-title {
      text-align: center;
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 40px;
      position: relative;
      display: inline-block;
      left: 50%;
      transform: translateX(-50%);
    }
    
    .section-title::after {
      content: '';
      display: block;
      width: 60px;
      height: 4px;
      background: var(--esp-brand);
      margin: 10px auto 0;
    }

    .chapter-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }

    .chapter-card {
      background: #fff;
      padding: 25px;
      border-radius: 8px;
      border-left: 4px solid var(--esp-brand);
      box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .chapter-num {
      color: var(--esp-brand-dark);
      font-weight: 700;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 1px;
      display: block;
      margin-bottom: 5px;
    }

    .chapter-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .author-section {
      background: #fff;
      display: flex;
      gap: 40px;
      align-items: center;
      padding: 60px;
      border-radius: 12px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }

    .author-img {
      width: 150px;
      height: 150px;
      background: #ddd;
      border-radius: 50%;
      flex-shrink: 0;
      overflow: hidden;
      border: 4px solid var(--esp-brand);
    }
    
    .author-img img { width: 100%; height: 100%; object-fit: cover; }

    /* Trust Badges */
    .esp-trust-logo { display: block; margin: 0 auto;; max-height: 140px; width: auto; max-width: 100%; object-fit: contain; }
    .esp-trust{
      --tc-yellow:#FCB017; --tc-ink:#0f172a; --tc-line:rgba(0,0,0,.06);
      background:#fff; padding-block:clamp(28px,5vw,0px); padding: 70px 0 60px;border-top:1px solid var(--line); border-bottom:1px solid var(--line);
    }
    .esp-trust .esp-trust-in{ max-width:1100px; margin:0 auto; padding:0 16px; }
    .esp-trust h2{ margin:0 0 8px; text-align:center; color:#000; font: 700 clamp(28px, 4vw, 40px)/1.2 Nunito, system-ui, sans-serif; }
    .esp-trust p{ margin:0 0 20px; text-align:center; color:#475569; font:600 14.5px/1.55 Nunito,system-ui; }
    .esp-trust-grid{ display:grid; gap:18px; grid-template-columns:repeat(2,1fr); max-width:1100px; margin:0 auto; padding-inline:16px; }
    @media (min-width:960px){ .esp-trust-grid{ grid-template-columns:repeat(4,1fr); } }
    .esp-trust-card{
      display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
      min-height:150px; padding:16px; border:2px solid var(--tc-yellow); border-radius:16px; background:#fff;
      box-shadow:0 8px 20px rgba(0,0,0,.06); transition:all .25s ease; text-decoration:none; color:inherit;
    }
    .esp-trust-card:hover{ transform:translateY(-3px); box-shadow:0 14px 28px rgba(0,0,0,.12); border-color:#f7b615; }

    /* Social Proof Popup */
    .sales-popup {
      position: fixed;
      bottom: 20px;
      left: 20px;
      background: #fff;
      padding: 15px 20px;
      border-radius: 8px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.15);
      display: flex;
      align-items: center;
      gap: 15px;
      z-index: 1000;
      transform: translateY(150%);
      transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      border-left: 4px solid var(--esp-brand);
      max-width: 350px;
    }

    .sales-popup.active { transform: translateY(0); }

    .popup-icon {
      width: 40px;
      height: 40px;
      background: #fef3c7;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #d97706;
    }

    .popup-text p { margin: 0; font-size: 13px; line-height: 1.4; }
    .popup-name { font-weight: 700; color: #000; }
    .popup-time { font-size: 11px; color: #888; }

    /* Mobile */
    @media (max-width: 768px) {
      .hero { padding-bottom: 50px; } /* Reduced hero bottom padding for mobile */
      .hero-grid { grid-template-columns: 1fr; text-align: center; }
      .book-container { margin-bottom: 10px; } /* Reduced space below book */
      .hero-tagline { border-left: none; padding: 0; }
      .author-section { flex-direction: column; text-align: center; padding: 30px; }
      .checkout-panel { margin: 0 20px 40px; }
      
      /* Make popup visible and centered on mobile */
      .sales-popup { 
        display: flex; 
        left: 50%;
        bottom: 20px;
        transform: translate(-50%, 150%);
        width: 90%;
      }
      .sales-popup.active {
        transform: translate(-50%, 0);
      }

      /* Reduce Book Size on Mobile */
      .book {
        width: 220px;
        height: 330px;
      }

      /* -- Mobile Fixes for Counter -- */
      .digit-window {
        font-size: 32px; /* Smaller font on mobile */
      }
      .odometer-container {
        padding: 5px 8px;
        border-width: 2px;
      }
      #counter-icon {
        font-size: 28px !important;
      }
      .counter-wrapper {
        padding: 15px;
        margin: 10px 0 20px;
      }
    }

/* Inline styles for ebook-page.html */
.st-738784b9 { color: #ccc !important; font-size: 18px !important; }
.st-d69cf5f9 { display: flex !important; align-items: center !important; justify-content: center !important; gap: 15px !important; margin-bottom: 5px !important; }
.st-6e212e7d { color: var(--esp-brand) !important; font-size: 40px !important; }
.st-bc188cca { color:white !important; font-size: 20px !important; }
.st-8fd5773d { font-size: 12px !important; text-transform: uppercase !important; letter-spacing: 1px !important; color: #777 !important; font-weight: 700 !important; margin-top: 5px !important; }
.st-be685ba4 { background: #fff !important; }

/* === GLOBAL FOOTER ACCESSIBLE CONTRAST === */
.esp-global-footer,.esp-global-footer p,.esp-global-footer span,.esp-global-footer strong{color:#f3f4f6!important}
.esp-global-footer a{color:#fff!important;text-decoration-color:#fcb017!important}
.esp-global-footer a:hover,.esp-global-footer a:focus{color:#fcb017!important}


/* === GLOBAL HONEYPOT VISIBILITY FIX === */
input[name="company_site"] {
  position: fixed !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}