/*
Theme Name: Squeeze SaaS
Theme URI: https://squeeze.saas
Author: Squeeze Team
Author URI: https://squeeze.saas
Description: A modern, citrus-inspired WordPress theme for the Squeeze image compression SaaS platform. Features a vibrant yellow/gold color scheme with clean, modern design.
Version: 1.0.0
Requires at least: 6.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: squeeze-saas
Tags: modern, saas, business, custom-menu, featured-images, threaded-comments, translation-ready

Squeeze SaaS WordPress theme, (C) 2024 Squeeze Team
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Squeeze - Citrus-Inspired Design System */
:root {
  /* Core brand colors - Warm citrus palette */
  --background: hsl(45, 100%, 96%);
  --foreground: hsl(220, 25%, 10%);
  --card: hsl(45, 80%, 98%);
  --card-foreground: hsl(220, 25%, 10%);
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(220, 25%, 10%);
  
  /* Primary: Vibrant lemon yellow */
  --primary: hsl(43, 95%, 55%);
  --primary-foreground: hsl(220, 25%, 10%);
  
  /* Secondary: Deep navy for contrast */
  --secondary: hsl(220, 25%, 15%);
  --secondary-foreground: hsl(45, 100%, 96%);
  
  --muted: hsl(45, 30%, 90%);
  --muted-foreground: hsl(220, 15%, 40%);
  
  /* Accent: Warm orange-gold */
  --accent: hsl(35, 95%, 50%);
  --accent-foreground: hsl(220, 25%, 10%);
  
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(0, 0%, 100%);
  
  --border: hsl(45, 30%, 85%);
  --input: hsl(45, 30%, 85%);
  --ring: hsl(43, 95%, 55%);
  
  --radius: 1rem;
  
  /* Custom Squeeze tokens */
  --squeeze-yellow: hsl(43, 95%, 55%);
  --squeeze-gold: hsl(35, 95%, 50%);
  --squeeze-orange: hsl(25, 95%, 50%);
  --squeeze-navy: hsl(220, 25%, 15%);
  --squeeze-cream: hsl(45, 100%, 96%);
  
  /* Unified Spacing System */
  --header-height: 80px;
  --page-padding-top: 6rem; /* Space below header */
  --page-padding-bottom: 4rem;
  --page-padding-side: 1rem;
  --section-spacing: 5rem;
  --card-spacing: 2rem;

  --dropzone-min-height: clamp(600px, 100vh, 1600px);
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--page-padding-side);
}

/* Unified Page Layout Spacing */
.page-wrapper {
  padding-top: var(--page-padding-top);
  padding-bottom: var(--page-padding-bottom);
  min-height: calc(100vh - var(--header-height));
}

.site-main {
  width: 100%;
}

/* Account Container - Consistent Spacing */
.account-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--page-padding-top) var(--page-padding-side) var(--page-padding-bottom);
}

/* Gradients */
.gradient-primary {
  background: linear-gradient(135deg, var(--squeeze-yellow) 0%, var(--squeeze-gold) 100%);
}

.gradient-hero {
  background: linear-gradient(180deg, hsl(43, 95%, 60%) 0%, hsl(35, 95%, 52%) 100%);
}

.gradient-card {
  background: linear-gradient(145deg, var(--card) 0%, hsl(45, 60%, 95%) 100%);
}

/* Shadows */
.shadow-soft {
  box-shadow: 0 4px 20px -4px hsla(43, 95%, 55%, 0.25);
}

.shadow-card {
  box-shadow: 0 8px 30px -8px hsla(220, 25%, 10%, 0.1);
}

.shadow-button {
  box-shadow: 0 4px 14px -2px hsla(43, 95%, 55%, 0.4);
}

.shadow-squeeze {
  box-shadow: 0 4px 20px -4px hsla(43, 95%, 55%, 0.25);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  background: linear-gradient(135deg, var(--squeeze-yellow) 0%, var(--squeeze-gold) 100%);
  color: var(--primary-foreground);
  border: 2px solid hsl(35, 95%, 45%);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -2px hsla(43, 95%, 55%, 0.5);
  border-color: hsl(35, 95%, 40%);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

/* Unified outline style: Login, Log out, Update payment method, user profile (header) */
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--background);
  border-color: var(--primary);
  color: var(--foreground);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-danger {
  background: #dc3545;
  color: #fff;
  border: 2px solid #c82333;
}

.btn-danger:hover {
  background: #c82333;
  border-color: #bd2130;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.35);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Premium Buttons - Enhanced Styling */
.premium-button,
.freemius_checkout_button,
a.freemius_checkout_button {
  background: linear-gradient(135deg, hsl(43, 95%, 55%) 0%, hsl(35, 95%, 50%) 100%) !important;
  color: hsl(220, 25%, 10%) !important;
  font-weight: 700 !important;
  border: 3px solid hsl(35, 95%, 45%) !important;
  box-shadow: 0 6px 20px -2px hsla(43, 95%, 55%, 0.5), 
              0 0 0 2px hsla(43, 95%, 65%, 0.3),
              inset 0 1px 0 hsla(0, 0%, 100%, 0.2) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
}
.navbar-links .premium-button {
  box-shadow: 0 6px 6px -2px hsla(43, 95%, 55%, 0.5), 
              0 0 0 2px hsla(43, 95%, 65%, 0.3),
              inset 0 1px 0 hsla(0, 0%, 100%, 0.2) !important;
  transition: all 0.3s ease;
  text-align: center;
}
.navbar-links .premium-button:hover {
  box-shadow: 0 6px 10px -2px hsla(43, 95%, 55%, 0.5), 
              0 0 0 2px hsla(43, 95%, 65%, 0.3),
              inset 0 1px 0 hsla(0, 0%, 100%, 0.2) !important;
}

.premium-button::before,
.freemius_checkout_button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.premium-button:hover::before,
.freemius_checkout_button:hover::before {
  left: 100%;
}

.premium-button:hover,
a.freemius_checkout_button:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 8px 25px -2px hsla(43, 95%, 55%, 0.6), 
              0 0 0 3px hsla(43, 95%, 65%, 0.4),
              inset 0 1px 0 hsla(0, 0%, 100%, 0.3) !important;
  border-color: hsl(35, 95%, 40%) !important;
  background: linear-gradient(135deg, hsl(43, 95%, 60%) 0%, hsl(35, 95%, 55%) 100%) !important;
}

.premium-button:active,
a.freemius_checkout_button:active {
  transform: translateY(-1px) scale(0.98) !important;
}

/* Premium button in hero actions */
.hero-actions .premium-button {
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-actions .premium-button:hover {
  animation: none; /* Stop animation on hover */
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 6px 20px -2px hsla(43, 95%, 55%, 0.5), 
                0 0 0 2px hsla(43, 95%, 65%, 0.3),
                inset 0 1px 0 hsla(0, 0%, 100%, 0.2);
  }
  50% {
    box-shadow: 0 6px 25px -2px hsla(43, 95%, 55%, 0.7), 
                0 0 0 3px hsla(43, 95%, 65%, 0.5),
                inset 0 1px 0 hsla(0, 0%, 100%, 0.2);
  }
}

/* Cards */
.card {
  background: var(--gradient-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  box-shadow: 0 12px 40px -8px hsla(220, 25%, 10%, 0.15);
}
/*
.card:hover {
  transform: translateY(-4px);
}*/

/* Account Page Styles */
.account-page {
  padding-top: var(--card-spacing);
}

.account-section {
  margin-bottom: 2rem;
}

.account-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.account-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.status-badge.status-active {
  background: #4db86b;
  color: white;
}

.status-badge.status-canceled {
  background: #f44336;
  color: white;
}

.status-badge.status-expired {
  background: #ff9800;
  color: white;
}

.account-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.account-info-item label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #666;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.account-info-item .value {
  font-size: 1.125rem;
  color: var(--foreground);
  font-weight: 500;
}

.account-form-group {
  margin-bottom: 1.5rem;
}

.account-form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.account-form-group input,
.account-form-group select,
.account-form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.account-form-group input:focus,
.account-form-group select:focus,
.account-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(43, 95%, 55%, 0.1);
}

.subscription-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  margin-bottom: 1rem;
}

.subscription-card:hover {
  box-shadow: 0 4px 12px -2px hsla(220, 25%, 10%, 0.1);
}

.subscription-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.subscription-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.subscription-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
}

.account-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.account-table td:first-child {
  font-weight: 600;
  color: var(--foreground);
  width: 40%;
}

.account-table td:last-child {
  color: #666;
}

.account-table tr:last-child td {
  border-bottom: none;
}

/* Login Form Styles */
.fs-login-form {
  max-width: 500px;
  margin: 0 auto;
}

.fs-login-form h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.fs-login-form .form-description {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.fs-login-form .form-group {
  margin-bottom: 1.5rem;
}

.fs-login-form .form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.fs-login-form .form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
}

.fs-login-form .form-actions {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.fs-login-form .form-footer {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #999;
  text-align: center;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  padding: 1rem 0;
  transition: background 0.3s ease, border-bottom-color 0.3s ease;
  min-height: 60px;
  max-height: 80px;
  overflow: hidden;
}

.navbar.scrolled {
  background: hsla(45, 100%, 96%, 0.8);
  border-bottom: 1px solid var(--border);
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--foreground);
  max-height: 100%;
  overflow: hidden;
}

.navbar-brand .custom-logo {
  max-width: 40px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.navbar-brand .lemon-icon {
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-link,
.navbar-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  transition: color 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-link:hover,
.navbar-link.active,
.navbar-links a:hover,
.navbar-links .current-menu-item > a {
  color: var(--primary);
}

.navbar-links .btn-has-icon,
.btn-has-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.account-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.2em;
}

.navbar-links .nav-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.2em;
}

/* Hamburger toggle – visible only on small screens via media query */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu-toggle:hover {
  background: var(--muted);
  color: var(--foreground);
}
.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 22px;
  height: 22px;
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.navbar.menu-open .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.navbar.menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.navbar.menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Body scroll lock when mobile menu is open */
html.menu-open,
body.menu-open {
  overflow: hidden;
  height: 100%;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: var(--page-padding-top);
  padding-left: var(--page-padding-side);
  padding-right: var(--page-padding-side);
}

.hero.features {
  flex-direction: column;
  padding: var(--section-spacing) var(--page-padding-side);
  min-height: auto;
}

.hero-content {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto 5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--foreground);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: hsla(220, 25%, 10%, 0.75);
  margin-bottom: 3rem;
  line-height: 1.7;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-bottom: 4rem;
  text-align: left;
}

.hero-benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1.5rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-benefit-row:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.15);
  border-color: hsla(43, 95%, 55%, 0.3);
}

.hero-benefit-row.premium {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(251, 191, 36, 0.1) 100%);
  border-color: hsla(43, 95%, 55%, 0.4);
  position: relative;
}

.hero-benefit-row.premium::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, hsl(43, 95%, 55%), hsl(35, 95%, 50%));
  border-radius: 1.5rem;
  z-index: -1;
  opacity: 0.1;
}

.hero-benefit-row.reverse {
  direction: rtl;
}

.hero-benefit-row.reverse > * {
  direction: ltr;
}

.hero-benefit-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hero-benefit-image svg {
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 300px;
}

.hero-benefit-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-benefit-content h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-benefit-content p {
  font-size: 1.125rem;
  color: hsla(220, 25%, 10%, 0.8);
  line-height: 1.8;
  margin: 0;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-list li {
  font-size: 1rem;
  color: hsla(220, 25%, 10%, 0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.premium-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, hsl(43, 95%, 55%), hsl(35, 95%, 50%));
  color: hsl(220, 25%, 10%);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px -2px hsla(43, 95%, 55%, 0.4);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Features Section */
.features {
  background: var(--background);
}

.hero.features {
  background: var(--gradient-hero);
}

.features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.features-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

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

.feature-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(43, 95%, 55%, 0.2);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.feature-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  background: hsla(43, 95%, 55%, 0.2);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Compressor Section */
.compressor-section {
  width: 100%;
  min-height: var(--dropzone-min-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  /*background: hsla(45, 30%, 90%, 0.5);*/
  box-sizing: border-box;
  position: relative;
  /*margin-top: 80px;*/
}

.compressor-header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 0 2rem;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.compressor-header * {
  pointer-events: none;
}

.compressor-header-text {
  text-align: left;
  padding: 1em;
}

.compressor-header-text .lemon-icon,
.compressor-header-text .custom-logo {
  display: block;
  margin: 0 0 1.5rem;
  width: 80px;
  height: 80px;
}

.compressor-header .hero-subtitle {
  font-size: 1.25rem;
  color: hsla(220, 25%, 10%, 0.75);
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
  max-width: 42rem;
  margin-left: 0;
  margin-right: auto;
  font-weight: 400;
}

.compressor-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.compressor-subtitle {
  border-bottom: 2px dashed rgba(0, 0, 0, 0.15);
  display: inline;
  margin-top: 1.5rem;
  font-size: 1rem;
  color: hsla(220, 25%, 10%, 0.7);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Right column: process animation mockup */
.compressor-header-animation {
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-mockup {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
}

.process-mockup-window {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.process-step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem 1.25rem 1.25rem;
  opacity: 0;
  visibility: hidden;
  animation-duration: 16s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.process-step-title {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsla(220, 25%, 20%, 0.9);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  line-height: 1.3;
}

.process-step .process-dropzone-mock,
.process-step .process-options-mock,
.process-step .process-download-mock {
  flex: 1;
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
}

.process-step .process-compare-mock {
  flex: 1;
  min-height: 0;
  align-self: stretch;
  width: 100%;
}

.process-step-1 { animation-name: process-step-1-show; }
.process-step-2 { animation-name: process-step-2-show; }
.process-step-3 { animation-name: process-step-3-show; }
.process-step-4 { animation-name: process-step-4-show; }

/* 16s total: step1 0–4s, step2 4–8s, step3 8–12s, step4 12–16s */
@keyframes process-step-1-show {
  0% { opacity: 1; visibility: visible; }
  24% { opacity: 1; visibility: visible; }
  25%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes process-step-2-show {
  0%, 24% { opacity: 0; visibility: hidden; }
  25% { opacity: 1; visibility: visible; }
  49% { opacity: 1; visibility: visible; }
  50%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes process-step-3-show {
  0%, 49% { opacity: 0; visibility: hidden; }
  50% { opacity: 1; visibility: visible; }
  74% { opacity: 1; visibility: visible; }
  75%, 100% { opacity: 0; visibility: hidden; }
}

@keyframes process-step-4-show {
  0%, 74% { opacity: 0; visibility: hidden; }
  75% { opacity: 1; visibility: visible; }
  99% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

/* Step 1: Drag & drop */
.process-dropzone-mock {
  width: 100%;
  height: 100%;
  min-height: 140px;
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  background: rgba(251, 191, 36, 0.06);
}

.process-dropzone-mock .process-dropzone-icon {
  width: 40px;
  height: 40px;
  color: hsla(43, 95%, 45%, 0.9);
  display: block;
}

.process-dropzone-mock .process-dropzone-icon svg {
  width: 100%;
  height: 100%;
}

.process-dropzone-mock .process-dropzone-text {
  font-size: 0.8125rem;
  color: hsla(220, 25%, 20%, 0.7);
  font-weight: 500;
}

/* Step 1: Cursor drags image into dropzone */
.process-dropzone-drag-demo {
  overflow: visible;
}

.process-drag-cursor {
  position: absolute;
  width: 22px;
  height: 22px;
  left: 15%;
  top: 20%;
  pointer-events: none;
  animation: process-cursor-drag 16s ease-in-out infinite;
  z-index: 3;
}

.process-drag-cursor svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

.process-drag-cursor svg path {
  fill: #fff;
  stroke: #000;
  stroke-width: 1;
}

.process-dragged-image {
  position: absolute;
  width: 46px;
  height: 46px;
  left: 15%;
  top: 20%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: process-image-dragged 16s ease-in-out infinite;
  z-index: 2;
}

.process-dragged-image svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

/* Step 1: one drag per 4s visibility – keyframes 0–25% = one drag (2× speed), 25–100% = hold */
@keyframes process-cursor-drag {
  0%, 1.5% { left: 15%; top: 20%; opacity: 0; transform: translate(10px, -8px); }
  2.5% { left: 15%; top: 20%; opacity: 1; transform: translate(10px, -8px); }
  10.25% { left: 50%; top: 50%; transform: translate(10px, -8px); opacity: 1; }
  25%, 100% { left: 50%; top: 50%; transform: translate(10px, -8px); opacity: 1; }
}

@keyframes process-image-dragged {
  0%, 1.5% { left: 15%; top: 20%; opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  2.5% { left: 15%; top: 20%; opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  10.25% { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  12.25%, 100% { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.7); opacity: 1; }
}

/* Step 2: Options – slider initial 100% then → 75%, percentage label; Smoothness checkbox */
.process-options-mock {
  width: 100%;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Step 2: align all labels to the left */
.process-step-2 .process-options-mock {
  align-items: flex-start;
}

.process-step-2 .process-option-row > span:first-child {
  text-align: left;
  flex-shrink: 0;
}

.process-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: hsla(220, 25%, 20%, 0.9);
}

.process-quality-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.process-slider-mock {
  width: 100px;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  position: relative;
  overflow: visible;
}

.process-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, hsl(43, 95%, 55%), hsl(35, 95%, 50%));
  border-radius: 3px;
  animation: process-quality-fill 4s ease-in-out infinite;
}

@keyframes process-quality-fill {
  0%, 25% { width: 100%; }
  100% { width: 75%; }
}

.process-slider-thumb {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  animation: process-quality-thumb 4s ease-in-out infinite;
}

@keyframes process-quality-thumb {
  0%, 25% { left: 100%; }
  100% { left: 75%; }
}

.process-quality-value {
  position: relative;
  min-width: 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(35, 95%, 40%);
  text-align: right;
}

.process-quality-100,
.process-quality-75 {
  position: absolute;
  right: 0;
  top: 0;
  opacity: 0;
  animation-duration: 4s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.process-quality-100 {
  animation-name: process-quality-show-100;
}

.process-quality-75 {
  animation-name: process-quality-show-75;
}

@keyframes process-quality-show-100 {
  0%, 40% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes process-quality-show-75 {
  0%, 40% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

/* Step 2 checkboxes (Smoothness, Convert to WebP): unchecked → checked */
.process-smoothness-checkbox,
.process-webp-checkbox {
  display: inline-flex;
  align-items: center;
}

.process-checkbox-box {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-checkbox-check {
  width: 6px;
  height: 10px;
  margin-bottom: 2px;
  border: solid hsl(35, 95%, 40%);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  animation: process-checkbox-check 4s ease-in-out infinite;
  animation-fill-mode: both;
}

/* Initial state unchecked (0–50%), then transition to checked (50–60%), hold checked (60–100%) */
@keyframes process-checkbox-check {
  0%, 50% { transform: rotate(45deg) scale(0); opacity: 0; }
  60%, 100% { transform: rotate(45deg) scale(1); opacity: 1; }
}

.process-smoothness-checkbox .process-checkbox-box,
.process-webp-checkbox .process-checkbox-box {
  animation: process-checkbox-box-checked 4s ease-in-out infinite;
  animation-fill-mode: both;
}

@keyframes process-checkbox-box-checked {
  0%, 50% { border-color: rgba(0, 0, 0, 0.25); background: #fff; }
  60%, 100% { border-color: hsl(35, 95%, 45%); background: rgba(255, 255, 255, 0.95); }
}

/* Step 3: Single image with moving before/after comparison slider */
.process-compare-mock {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}

.process-compare-image-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-compare-sketch {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  box-sizing: border-box;
}

.process-compare-label {
  position: absolute;
  bottom: 0.35rem;
  font-size: 0.625rem;
  font-weight: 700;
  color: hsla(220, 25%, 30%, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  line-height: 1.2;
}

.process-compare-label-text {
  display: block;
}

.process-compare-size {
  font-weight: 800;
  color: hsla(220, 25%, 20%, 0.9);
  display: block;
}

.process-compare-size-smaller {
  color: hsl(142, 55%, 38%);
  font-weight: 800;
}

.process-compare-label-before {
  left: 0.5rem;
}

.process-compare-label-after {
  right: 0.5rem;
  align-items: flex-end;
}

.process-compare-label-after .process-compare-size-smaller {
  position: relative;
}

.process-compare-label-after .process-compare-size-smaller::before {
  content: "↓ ";
  font-size: 0.7em;
  opacity: 0.9;
}

.process-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  margin-left: -2px;
  background: linear-gradient(180deg, transparent, hsl(43, 95%, 55%), transparent);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.8);
  pointer-events: none;
  animation: process-compare-slider-move 16s ease-in-out infinite;
}

@keyframes process-compare-slider-move {
  0%, 50% { left: 15%; }
  62.5% { left: 50%; }
  75%, 100% { left: 85%; }
}

/* Step 4: Image downloading with lower size, then green check */
.process-download-mock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  min-height: 0;
}

.process-download-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: process-download-file-show 16s ease-in-out infinite;
}

.process-download-file-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.process-download-file-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.process-download-file-size {
  font-size: 0.8125rem;
  font-weight: 700;
  color: hsl(35, 95%, 40%);
}

.process-download-file-arrow {
  font-size: 1rem;
  color: hsla(220, 25%, 30%, 0.6);
  animation: process-download-arrow 1.2s ease-in-out infinite;
}

@keyframes process-download-file-show {
  0%, 74% { opacity: 0; transform: translateY(4px); }
  75% { opacity: 1; transform: translateY(0); }
  90% { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes process-download-arrow {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(3px); }
}

.process-download-check {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: hsl(142, 70%, 45%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  animation: process-download-done 16s ease-in-out infinite;
}

@keyframes process-download-done {
  0%, 88% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  92% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  99%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Reduced motion: show only step 1 and static stepper */
@media (prefers-reduced-motion: reduce) {
  .process-step {
    animation: none;
  }
  .process-step-1 {
    opacity: 1;
    visibility: visible;
  }
  .process-step-2,
  .process-step-3,
  .process-step-4 {
    opacity: 0;
    visibility: hidden;
  }
  .process-flying-image,
  .process-drag-cursor,
  .process-dragged-image,
  .process-slider-fill,
  .process-slider-thumb,
  .process-quality-100,
  .process-quality-75,
  .process-checkbox-check,
  .process-smoothness-checkbox .process-checkbox-box,
  .process-webp-checkbox .process-checkbox-box,
  .process-compare-divider,
  .process-download-file,
  .process-download-file-arrow,
  .process-download-check {
    animation: none;
  }
  .process-flying-image {
    opacity: 0;
  }
  .process-drag-cursor { left: 50%; top: 50%; transform: translate(10px, -8px); opacity: 1; }
  .process-dragged-image { left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.7); opacity: 1; }
  .process-slider-fill { width: 100%; }
  .process-slider-thumb { left: 100%; }
  .process-quality-100 { opacity: 1; }
  .process-quality-75 { opacity: 0; }
  .process-checkbox-check { transform: rotate(45deg) scale(1); opacity: 1; }
  .process-smoothness-checkbox .process-checkbox-box,
  .process-webp-checkbox .process-checkbox-box { border-color: hsl(35, 95%, 45%); }
  .process-compare-divider { left: 50%; }
  .process-download-file { opacity: 0; }
  .process-download-check { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Hide header when comparison area is shown */
.squeeze-comparison-area[style*="display: block"] ~ .compressor-header,
.squeeze-comparison-area:not([style*="display: none"]) ~ .compressor-header {
  display: none;
}

.compressor-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

.compressor-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.compressor-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 3rem var(--page-padding-side);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  grid-column: span 2;
}

.footer-brand h4 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: hsla(45, 100%, 96%, 0.7);
  max-width: 28rem;
}

.footer-section h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  font-size: 0.875rem;
  color: hsla(45, 100%, 96%, 0.7);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid hsla(45, 100%, 96%, 0.2);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: hsla(45, 100%, 96%, 0.5);
}

/* Premium Page */
.premium-hero {
  padding: var(--section-spacing) var(--page-padding-side);
  background: var(--gradient-hero);
  text-align: center;
}

.premium-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, hsla(43, 95%, 55%, 0.12) 0%, hsla(35, 95%, 50%, 0.08) 100%);
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(35, 95%, 38%);
  border: 1px solid hsla(43, 95%, 55%, 0.35);
  box-shadow: 0 2px 12px -2px hsla(43, 95%, 55%, 0.25),
              inset 0 1px 0 hsla(0, 0%, 100%, 0.4);
  margin-bottom: 1.5rem;
}

.premium-badge-header svg {
  color: hsl(43, 95%, 50%);
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px hsla(43, 95%, 55%, 0.3));
}

.premium-hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.premium-hero-subtitle {
  font-size: 1.25rem;
  color: hsla(220, 25%, 10%, 0.8);
  margin-bottom: 2rem;
}

.pricing-comparison {
  padding: calc(var(--section-spacing) + 3rem) var(--page-padding-side) var(--section-spacing);
  background: hsla(45, 30%, 90%, 0.5);
}

.pricing-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.pricing-toggle-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.pricing-toggle-label:hover {
  color: var(--primary);
}

.pricing-toggle-savings {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  background: hsla(43, 95%, 55%, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.pricing-toggle {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  cursor: pointer;
}

.pricing-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pricing-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border);
  transition: 0.3s;
  border-radius: 32px;
}

.pricing-toggle-slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pricing-toggle-input:checked + .pricing-toggle-slider {
  background-color: var(--primary);
}

.pricing-toggle-input:checked + .pricing-toggle-slider:before {
  transform: translateX(24px);
}

.pricing-toggle-input:focus + .pricing-toggle-slider {
  box-shadow: 0 0 0 3px hsla(43, 95%, 55%, 0.3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-squeeze);
  overflow: hidden;
}

.pricing-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-bottom-left-radius: 0.5rem;
}

.pricing-header {
  text-align: center;
  padding-bottom: 1rem;
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.pricing-period {
  color: var(--muted-foreground);
}

.pricing-features {
  padding: 1rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pricing-feature svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.pricing-feature.disabled {
  opacity: 0.5;
}

.pricing-feature.disabled svg {
  display: none;
}

.pricing-feature.disabled::before {
  content: '';
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--muted-foreground);
  border-radius: 0.25rem;
  flex-shrink: 0;
}

/* ===== Incognito Privacy Animation ===== */

/* Aura breathing */
.incognito-anim .incog-aura {
  transform-box: fill-box;
  transform-origin: center;
  animation: incog-breathe 4s ease-in-out infinite;
}

@keyframes incog-breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* Ripple rings expanding outward */
.incognito-anim .incog-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: incog-ripple 3.6s ease-out infinite;
  opacity: 0;
}

.incognito-anim .incog-ring-2 { animation-delay: 1.2s; }
.incognito-anim .incog-ring-3 { animation-delay: 2.4s; }

@keyframes incog-ripple {
  0% { transform: scale(1); opacity: 0.5; stroke-width: 2; }
  100% { transform: scale(2); opacity: 0; stroke-width: 0.3; }
}

/* Icon group floating */
.incognito-anim .incog-float-group {
  animation: incog-float 5s ease-in-out infinite;
}

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

/* Pupil eye-tracking */
.incognito-anim .incog-pupil {
  animation: incog-look 7s ease-in-out infinite;
}

@keyframes incog-look {
  0%, 30% { transform: translateX(0); }
  10% { transform: translateX(10px) translateY(-2px); }
  20% { transform: translateX(-8px) translateY(1px); }
  40% { transform: translateX(6px) translateY(-1px); }
  55% { transform: translateX(-4px); }
  70%, 100% { transform: translateX(0); }
}

/* Floating particles */
.incognito-anim .incog-particle {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.4;
}

.incognito-anim .incog-p1 { animation: incog-particle-1 4.5s ease-in-out infinite; }
.incognito-anim .incog-p2 { animation: incog-particle-2 5.2s ease-in-out 0.8s infinite; }
.incognito-anim .incog-p3 { animation: incog-particle-3 4.8s ease-in-out 1.5s infinite; }
.incognito-anim .incog-p4 { animation: incog-particle-1 5.5s ease-in-out 0.3s infinite; }
.incognito-anim .incog-p5 { animation: incog-particle-2 4.2s ease-in-out 2s infinite; }
.incognito-anim .incog-p6 { animation: incog-particle-3 5s ease-in-out 1.2s infinite; }
.incognito-anim .incog-p7 { animation: incog-particle-1 4.8s ease-in-out 0.5s infinite; }
.incognito-anim .incog-p8 { animation: incog-particle-2 5.3s ease-in-out 1.8s infinite; }

@keyframes incog-particle-1 {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  25% { transform: translateY(-12px) translateX(4px) scale(1.15); opacity: 0.7; }
  50% { transform: translateY(-4px) translateX(-2px) scale(0.9); opacity: 0.5; }
  75% { transform: translateY(-14px) translateX(6px) scale(1.1); opacity: 0.6; }
}

@keyframes incog-particle-2 {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  30% { transform: translateY(-10px) translateX(-5px) scale(1.2); opacity: 0.65; }
  60% { transform: translateY(-6px) translateX(3px) scale(0.85); opacity: 0.45; }
  80% { transform: translateY(-15px) translateX(-3px) scale(1.05); opacity: 0.55; }
}

@keyframes incog-particle-3 {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
  20% { transform: translateY(-8px) translateX(6px) scale(1.1); opacity: 0.6; }
  50% { transform: translateY(-16px) translateX(-4px) scale(0.95); opacity: 0.75; }
  70% { transform: translateY(-5px) translateX(2px) scale(1.15); opacity: 0.5; }
}

/* Scan line sweep */
.incognito-anim .incog-scan {
  animation: incog-scan-sweep 5.5s ease-in-out 1.5s infinite;
}

@keyframes incog-scan-sweep {
  0%, 75%, 100% { transform: translateY(0); opacity: 0; }
  5% { opacity: 0.65; }
  30% { opacity: 0.65; }
  35% { transform: translateY(195px); opacity: 0; }
}

/* ===== Compression Technology Animation ===== */

/* Aura breathing */
.compress-anim .compress-aura {
  transform-box: fill-box;
  transform-origin: center;
  animation: compress-breathe 4s ease-in-out infinite;
}

@keyframes compress-breathe {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* Ripple rings expanding outward */
.compress-anim .compress-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: compress-ripple 3.6s ease-out infinite;
  opacity: 0;
}

.compress-anim .compress-ring-2 { animation-delay: 1.2s; }
.compress-anim .compress-ring-3 { animation-delay: 2.4s; }

@keyframes compress-ripple {
  0% { transform: scale(1); opacity: 0.5; stroke-width: 2; }
  100% { transform: scale(2); opacity: 0; stroke-width: 0.3; }
}

/* Icon group floating */
.compress-anim .compress-float-group {
  animation: compress-float 5s ease-in-out infinite;
}

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

/* Jaws move toward each other (compression motion) – animate wrapper <g> for reliable SVG transform */
.compress-anim .compress-jaw-wrap {
  transform-box: fill-box;
  transform-origin: 12px 12px; /* center of icon in local 0–24 coords */
}

.compress-anim .compress-jaw-top {
  animation: compress-jaw-close-top 2.2s ease-in-out infinite;
}

/* Bottom jaw and arrows stay fixed; only top jaw moves */
@keyframes compress-jaw-close-top {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(50%); }
  60% { transform: translateY(50%); }
}

/* Data lines sequential pulse (processing wave) */
.compress-anim .compress-data-line {
  animation: compress-line-pulse 2.5s ease-in-out infinite;
}

.compress-anim .compress-dl-2 { animation-delay: 0.25s; }
.compress-anim .compress-dl-3 { animation-delay: 0.5s; }

@keyframes compress-line-pulse {
  0%, 40%, 100% { opacity: 0.35; stroke-width: 0.22; }
  20% { opacity: 1; stroke-width: 0.38; }
}

/* Data flow particles streaming through compressor */
.compress-anim .compress-flow {
  animation: compress-data-flow 3s ease-in infinite;
}

.compress-anim .compress-flow-2 { animation-delay: 0.75s; }
.compress-anim .compress-flow-3 { animation-delay: 1.5s; }
.compress-anim .compress-flow-4 { animation-delay: 2.25s; }

@keyframes compress-data-flow {
  0% { transform: translateY(0); opacity: 0; }
  8% { opacity: 0.7; }
  70% { opacity: 0.5; }
  100% { transform: translateY(225px); opacity: 0; }
}

/* Output funnel periodic glow */
.compress-anim .compress-funnel {
  animation: compress-funnel-glow 3s ease-in-out infinite;
}

@keyframes compress-funnel-glow {
  0%, 55%, 100% { fill: rgba(255, 255, 255, 0.95); }
  75% { fill: hsla(43, 95%, 55%, 0.35); }
}

/* Floating ambient particles */
.compress-anim .compress-particle {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.4;
}

.compress-anim .compress-pp1 { animation: incog-particle-1 4.5s ease-in-out infinite; }
.compress-anim .compress-pp2 { animation: incog-particle-2 5.2s ease-in-out 0.8s infinite; }
.compress-anim .compress-pp3 { animation: incog-particle-3 4.8s ease-in-out 1.5s infinite; }
.compress-anim .compress-pp4 { animation: incog-particle-1 5.5s ease-in-out 0.3s infinite; }
.compress-anim .compress-pp5 { animation: incog-particle-2 4.2s ease-in-out 2s infinite; }
.compress-anim .compress-pp6 { animation: incog-particle-3 5s ease-in-out 1.2s infinite; }
.compress-anim .compress-pp7 { animation: incog-particle-1 4.8s ease-in-out 0.5s infinite; }
.compress-anim .compress-pp8 { animation: incog-particle-2 5.3s ease-in-out 1.8s infinite; }

/* Scan line sweep */
.compress-anim .compress-scan {
  animation: compress-scan-sweep 6s ease-in-out 2s infinite;
}

@keyframes compress-scan-sweep {
  0%, 75%, 100% { transform: translateY(0); opacity: 0; }
  5% { opacity: 0.6; }
  30% { opacity: 0.6; }
  35% { transform: translateY(210px); opacity: 0; }
}

/* ===== Works Everywhere – Browser Check Animation ===== */
.browser-check-anim .browser-check-mark {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  animation: browser-check-draw 2.5s ease-in-out infinite;
}

@keyframes browser-check-draw {
  0% { stroke-dashoffset: 12; }
  35% { stroke-dashoffset: 0; }
  65% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 12; }
}

/* ===== WebP Conversion – Convert icon animation ===== */
.webp-convert-anim .webp-convert-result {
  transform-box: fill-box;
  transform-origin: 34px 24px;
  animation: webp-convert-pulse 2.5s ease-in-out infinite;
}

@keyframes webp-convert-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.92; transform: scale(1.03); }
}

/* ===== Unlimited Image Squeezing – Picture stack animation ===== */
/* Main image slides right-to-left, revealing the stack behind it */
.unlimited-squeeze-anim .unlimited-squeeze-front {
  transform-box: fill-box;
  transform-origin: 8.9px 10.2px;
  animation: unlimited-squeeze-slide 4s ease-in-out infinite;
}

@keyframes unlimited-squeeze-slide {
  0% { transform: translateX(6px); }
  22% { transform: translateX(0); }
  55% { transform: translateX(0) scale(1.02); }
  72% { transform: translateX(0); }
  100% { transform: translateX(6px); }
}

/* Stack stays visible behind the sliding main image (no expand animation) */
.unlimited-squeeze-anim .unlimited-squeeze-stack-1,
.unlimited-squeeze-anim .unlimited-squeeze-stack-2 {
  transform-box: fill-box;
}

/* ===== Smart Resize & Optimization – Arrow expand animation ===== */
/* Arrows slide from center to corners (scale 0 → 1); rect expands when they arrive */
.resize-expand-anim .resize-expand-rect,
.resize-expand-anim .resize-expand-arrows {
  transform-box: fill-box;
  transform-origin: 7px 7px;
}

.resize-expand-anim .resize-expand-arrows {
  animation: resize-expand-arrows-slide 3.2s ease-in-out infinite;
}

.resize-expand-anim .resize-expand-rect {
  animation: resize-expand-rect-pop 3.2s ease-in-out infinite;
}

@keyframes resize-expand-arrows-slide {
  0% { transform: scale(0.7); opacity: 0.5; }
  28% { transform: scale(0.92); opacity: 1; }
  55% { transform: scale(0.92); opacity: 1; }
  82% { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(0.7); opacity: 0.5; }
}

@keyframes resize-expand-rect-pop {
  0% { transform: scale(1); }
  28% { transform: scale(1.08); }
  55% { transform: scale(1.08); }
  82% { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ===== Advanced Quality Control – Settings slider animation ===== */
.quality-control-anim .quality-control-knob-1,
.quality-control-anim .quality-control-knob-2 {
  transform-box: fill-box;
}

.quality-control-anim .quality-control-knob-1 {
  animation: quality-knob-slide-1 3s ease-in-out infinite;
}

.quality-control-anim .quality-control-knob-2 {
  animation: quality-knob-slide-2 3s ease-in-out infinite;
}

@keyframes quality-knob-slide-1 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(1.8px); }
}

@keyframes quality-knob-slide-2 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-1.5px); }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-benefit-row {
    gap: 2rem;
    padding: 1.75rem;
  }
  
  .hero-benefit-content h3 {
    font-size: 1.5rem;
  }
  
  .hero-benefit-content p {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .hero-benefits {
    gap: 2.5rem;
  }
  
  .hero-benefit-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
    direction: ltr;
  }
  
  .hero-benefit-row.reverse {
    direction: ltr;
  }
  
  .hero-benefit-image {
    min-height: 200px;
    order: 1;
  }
  
  .hero-benefit-content {
    order: 2;
  }
  
  .hero-benefit-content h3 {
    font-size: 1.5rem;
  }
  
  .hero-benefit-content p {
    font-size: 1rem;
  }
  
  .benefit-list li {
    font-size: 0.9375rem;
  }
  
  .compressor-title {
    font-size: 2rem;
  }
  
  .compressor-header .hero-subtitle {
    font-size: 1.125rem;
    max-width: 100%;
  }
  
  .compressor-subtitle {
    font-size: 0.9375rem;
  }
  
  .compressor-header {
    padding: 0 2rem;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .compressor-header-text {
    text-align: center;
  }
  
  .compressor-header-text .lemon-icon,
  .compressor-header-text .custom-logo {
    margin-left: auto;
    margin-right: auto;
  }
  
  .compressor-header .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .compressor-header-animation {
    order: -1;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .compressor-header .lemon-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
    z-index: 102;
  }
  
  .navbar-content {
    flex-wrap: nowrap;
  }
  
  /* Overlay: behind the panel (z-index 99), blocks page interaction and closes on click */
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(0, 0, 0, 0.25);
  }
  
  .navbar.menu-open ~ .mobile-menu-overlay {
    display: block;
  }
  
  /* Side panel: above overlay (z-index 101), full viewport height, slide from right */
  .navbar-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: max-content;
    min-width: 8rem;
    max-width: min(320px, 85vw);
    margin: 0;
    padding: 5rem 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1em;
    background: hsla(45, 100%, 96%, 0.98);
    border-left: 1px solid var(--border);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    z-index: 101;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  
  .navbar.menu-open .navbar-links {
    transform: translateX(0);
  }
  
  /* Keep navbar (and hamburger/close toggle) above the panel so user can close by clicking it */
  .navbar.menu-open {
    z-index: 102;
  }
  
  .navbar-links ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }
  
  .navbar-links li {
    border-bottom: 1px solid var(--border);
  }
  
  .navbar-links li:last-child {
    border-bottom: none;
  }
  
  .navbar-links a,
  .navbar-links .btn {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    white-space: nowrap;
  }
  
  .navbar-links .btn.btn-outline.btn-has-icon,
  .navbar-links .btn-outline {
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
  }
  
  .navbar-brand .custom-logo {
    max-width: 32px;
    max-height: 32px;
  }
  
  .navbar {
    min-height: 56px;
    max-height: 70px;
    padding: 0.75rem 0;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-toggle-wrapper {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .pricing-toggle-label {
    font-size: 0.9375rem;
  }
  
  .pricing-toggle-savings {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
  }
  
  .footer-brand {
    grid-column: span 1;
  }
}

/* Lemon Icon */
.lemon-icon {
  width: 40px;
  height: 40px;
  display: inline-block;
}

.lemon-icon svg {
  width: 100%;
  height: 100%;
}

/* Image Compressor Styles */
.squeeze-compressor-container {
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  width: 100%;
}

.squeeze-file-input-wrapper {
  margin-bottom: 2rem;
}

.squeeze-file-input {
  display: none;
}

.squeeze-file-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.squeeze-file-label:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-button);
}

.squeeze-file-label svg {
  width: 24px;
  height: 24px;
}

.squeeze-quality-control {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--muted);
  border-radius: var(--radius);
}

.squeeze-quality-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.squeeze-quality-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.squeeze-quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.squeeze-quality-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.squeeze-webp-option {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--muted);
  border-radius: var(--radius);
}

.squeeze-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.squeeze-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.squeeze-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.squeeze-compare-before,
.squeeze-compare-after {
  display: flex;
  flex-direction: column;
}

.squeeze-compare-header {
  margin-bottom: 1rem;
}

.squeeze-compare-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.squeeze-file-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.squeeze-image-wrapper {
  position: relative;
  background: var(--muted);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.squeeze-image-wrapper img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius);
}

.squeeze-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.squeeze-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.squeeze-loading p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.squeeze-savings {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

.squeeze-savings-label {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.squeeze-savings-percent {
  font-size: 1.125rem;
}

.squeeze-savings-percent.positive {
  color: #10b981;
}

.squeeze-savings-percent.negative {
  color: #ef4444;
}

.squeeze-download-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.squeeze-download-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .squeeze-comparison {
    grid-template-columns: 1fr;
  }
  
  .squeeze-compressor-container {
    padding: .5rem;
  }
}

/* Page Container */
.page-container {
  padding: var(--page-padding-top) var(--page-padding-side) var(--page-padding-bottom);
  max-width: 1200px;
  margin: 0 auto;
}

.entry-header {
  text-align: center;
  margin-bottom: 3rem;
}

.entry-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0;
}

/* Page Content Typography */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--foreground);
}

.entry-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.entry-content h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

.entry-content h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.entry-content h3 {
  font-size: 1.5rem;
}

.entry-content h4 {
  font-size: 1.25rem;
}

.entry-content h5 {
  font-size: 1.125rem;
}

.entry-content h6 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Lists */
.entry-content ul,
.entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.entry-content ul {
  list-style-type: disc;
}

.entry-content ol {
  list-style-type: decimal;
}

.entry-content li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.entry-content ul ul {
  list-style-type: circle;
}

.entry-content ul ul ul {
  list-style-type: square;
}

/* Horizontal Rules */
.entry-content hr {
  border: none;
  border-top: 2px solid var(--border);
  margin: 2.5rem 0;
  background: none;
}

/* Links */
.entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.entry-content a:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
}

/* Blockquotes */
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted-foreground);
  background: hsla(43, 95%, 55%, 0.05);
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

.entry-content blockquote p {
  margin-bottom: 0;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

.entry-content blockquote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.entry-content blockquote cite:before {
  content: '— ';
}

/* Code */
.entry-content code {
  background: var(--muted);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
  color: var(--foreground);
}

.entry-content pre {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.6;
}

.entry-content pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* Tables */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
}

.entry-content table th,
.entry-content table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.entry-content table th {
  background: var(--muted);
  font-weight: 700;
  color: var(--foreground);
}

.entry-content table tr:hover {
  background: hsla(43, 95%, 55%, 0.05);
}

/* Images */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.entry-content figure {
  margin: 2rem 0;
  text-align: center;
}

.entry-content figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: italic;
}

/* Page Links */
.entry-content .page-links {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.entry-content .page-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background: var(--muted);
  border-radius: 0.25rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.entry-content .page-links a:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* Strong and Emphasis */
.entry-content strong {
  font-weight: 700;
  color: var(--foreground);
}

.entry-content em {
  font-style: italic;
}

/* Definition Lists */
.entry-content dl {
  margin: 1.5rem 0;
}

.entry-content dt {
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.entry-content dd {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--muted-foreground);
}

/* Address */
.entry-content address {
  font-style: normal;
  margin: 1.5rem 0;
  line-height: 1.8;
}

/* Responsive Spacing */
@media (max-width: 768px) {
  :root {
    --page-padding-top: 4rem;
    --page-padding-bottom: 3rem;
    --section-spacing: 3rem;
    --card-spacing: 1.5rem;
  }
  
  .page-container {
    padding: var(--page-padding-top) var(--page-padding-side) var(--page-padding-bottom);
  }
  
  .account-container {
    padding: var(--page-padding-top) var(--page-padding-side) var(--page-padding-bottom);
  }
  
  .entry-header {
    margin-bottom: 2rem;
  }
  
  .entry-title {
    font-size: 2rem;
  }
  
  .entry-content {
    font-size: 1rem;
  }
  
  .entry-content h1 {
    font-size: 2rem;
  }
  
  .entry-content h2 {
    font-size: 1.75rem;
  }
  
  .entry-content h3 {
    font-size: 1.375rem;
  }
  
  .entry-content ul,
  .entry-content ol {
    padding-left: 1.5rem;
  }
  
  .entry-content table {
    font-size: 0.875rem;
  }
  
  .entry-content table th,
  .entry-content table td {
    padding: 0.5rem;
  }
  
  .entry-content blockquote {
    padding: 1rem;
    margin: 1.5rem 0;
  }
}

/* Archive & Search Pages */
.archive-description {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.archive-posts,
.search-results {
  max-width: 800px;
  margin: 0 auto;
}

.archive-post-item,
.search-result-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.archive-post-item:hover,
.search-result-item:hover {
  box-shadow: 0 12px 40px -8px hsla(220, 25%, 10%, 0.15);
  transform: translateY(-2px);
}

.archive-post-content .entry-title,
.search-result-content .entry-title {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.archive-post-content .entry-title a,
.search-result-content .entry-title a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.archive-post-content .entry-title a:hover,
.search-result-content .entry-title a:hover {
  color: var(--primary);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.entry-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.entry-meta a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.entry-meta a:hover {
  color: var(--primary);
}

.post-thumbnail {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.archive-post-item:hover .post-thumbnail-img {
  transform: scale(1.02);
}

.entry-summary {
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.entry-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.btn-sm {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

/* Pagination */
.pagination-wrapper {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: center;
}

.pagination-wrapper .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-wrapper .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: var(--card);
  color: var(--foreground);
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .page-numbers.current {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.pagination-wrapper .page-numbers.dots {
  background: transparent;
  border: none;
  cursor: default;
}

.pagination-wrapper .page-numbers.dots:hover {
  background: transparent;
  color: var(--foreground);
}

/* Error 404 Page */
.error-404 .error-subtitle {
  font-size: 1.5rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  font-weight: 400;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Search Form */
.search-form {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  gap: 0.5rem;
}

.search-form label {
  flex: 1;
}

.search-form input[type="search"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--primary);
}

.search-form button,
.search-form input[type="submit"] {
  padding: 0.75rem 2rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-form button:hover,
.search-form input[type="submit"]:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-button);
}

/* Responsive Archive & Search */
@media (max-width: 768px) {
  .archive-post-item,
  .search-result-item {
    padding: 1.5rem;
  }
  
  .archive-post-content .entry-title,
  .search-result-content .entry-title {
    font-size: 1.5rem;
  }
  
  .entry-meta {
    font-size: 0.8125rem;
    gap: 0.75rem;
  }
  
  .pagination-wrapper .page-numbers {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
  }
  
  .error-actions {
    flex-direction: column;
  }
  
  .error-actions .btn {
    width: 100%;
  }
  
  .search-form {
    flex-direction: column;
  }
  
  .search-form button,
  .search-form input[type="submit"] {
    width: 100%;
  }
}

/* Post Navigation */
.post-navigation {
  max-width: 800px;
  margin: 3rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
  background: var(--muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.post-navigation .nav-title {
  display: block;
  font-weight: 600;
  color: var(--foreground);
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  text-decoration: none;
  display: block;
}

.post-navigation a:hover .nav-title {
  color: var(--primary);
}

@media (max-width: 768px) {
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }
  
  .post-navigation .nav-next {
    text-align: left;
  }
}

/* External link icon (::after pseudo-element) */
a[target="_blank"]::after,
a.external::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-inline-start: 0.2em;
  vertical-align: middle;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
}

.icon-external {
  width: 0.9em;
  height: 0.9em;
  vertical-align: middle;
  margin-inline-start: 0.15em;
}