/* ===============  Root & Resets  =============== */
:root {
  --primary: #3498db;
  --primary-dark: #0077c0;
  --gradient-dark: #00308F;
  --secondary: #e74c3c;
  --accent: #f39c12;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --text: #34495e;
  --gray: #95a5a6;
  --success: #2ecc71;
  --white: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===============  Typography  =============== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

a:hover {
  color: var(--primary-dark);
}

.highlight {
  color: var(--primary);
}

/* ===============  Header  =============== */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 38px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
}

.logo a {
  display: flex;
  align-items: center;
  color: inherit;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition:
    background-color .25s ease,
    box-shadow .35s cubic-bezier(.19,1,.22,1),
    transform .35s cubic-bezier(.19,1,.22,1),
    color .25s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.logo a img {
  transition: transform .35s cubic-bezier(.19,1,.22,1), filter .35s;
  will-change: transform;
}

/* Base (neutral) */
.logo a {
  background: transparent;
  box-shadow: none;
}

/* Hover (pointer devices only) */
@media (hover:hover) {
  .logo a:hover {
    background: linear-gradient(135deg,#f0f7fc 0%, #e2f1fa 100%);
    box-shadow:
      0 4px 12px -6px rgba(52,152,219,0.35),
      0 0 0 1px rgba(52,152,219,0.25),
      0 1px 2px rgba(0,0,0,0.06);
    transform: translateY(-2px);
    color: var(--primary);
  }
  .logo a:hover img {
    transform: scale(1.04);
    filter: saturate(1.12) contrast(1.05);
  }
}

/* Keyboard focus (distinct but not flashy) */
.logo a:focus-visible {
  background: linear-gradient(135deg,#eaf4fb,#d8ecf8);
  box-shadow:
    0 0 0 3px rgba(52,152,219,0.35),
    0 2px 6px rgba(52,152,219,0.25);
  color: var(--primary);
}

/* Active (mouse press) – compress slightly, remove lift */
.logo a:active {
  transform: translateY(0);
  box-shadow:
    0 2px 6px -3px rgba(52,152,219,0.35),
    0 0 0 1px rgba(52,152,219,0.3);
}

/* Touch devices: keep calm (no hover style) */
@media (hover:none) {
  .logo a {
    padding: 6px 10px; /* larger tap target subtly */
  }
  .logo a:active {
    background: #e5f1fa;
  }
}

/* Reduced motion: disable transform shifts */
@media (prefers-reduced-motion: reduce) {
  .logo a,
  .logo a img {
    transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
  }
  .logo a:hover,
  .logo a:focus-visible,
  .logo a:active {
    transform: none;
  }
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: var(--dark);
  font-weight: 500;
  font-size: 1rem;
}

nav ul li a:hover {
  color: var(--primary);
}

/* ===============  Buttons  =============== */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn.primary {
  background-color: var(--primary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Subtle, modern Learn More button (secondary) */
/* === Learn More button: blue ONLY on hover === */
.btn.secondary {
  background: #f6f8fa;
  color: var(--dark);
  border: 1.5px solid #e1e6eb;
  box-shadow: 0 1px 2px rgba(44,62,80,0.05);
  font-weight: 500;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
  outline: none;
}

/* Hover (pointer devices) */
@media (hover:hover) {
  .btn.secondary:hover {
    background: #eaf3fb;
    color: var(--primary);
    border-color: #bed7eb;
    box-shadow: 0 2px 8px rgba(52,152,219,0.12);
  }
}

/* Keyboard focus: keep base colors, add outline ring only */
.btn.secondary:focus-visible {
  background: #f6f8fa;        /* no blue */
  color: var(--dark);
  border-color: #93c5eb;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.30), 0 1px 2px rgba(44,62,80,0.05);
}

/* Mouse focus (clicked) without hover: stay neutral */
.btn.secondary:focus:not(:focus-visible) {
  background: #f6f8fa;
  color: var(--dark);
  border-color: #e1e6eb;
  box-shadow: 0 1px 2px rgba(44,62,80,0.05);
}

/* Active press: subtle depress, no blue */
.btn.secondary:active {
  background: #edf1f5;
  color: var(--dark);
  border-color: #d2d9df;
  box-shadow: 0 1px 3px rgba(44,62,80,0.12) inset;
  transform: translateY(0); /* keep stable */
}

/* Touch devices: disable hover color sticking entirely */
@media (hover:none) {
  .btn.secondary:hover {
    background: #f6f8fa;
    color: var(--dark);
    border-color: #e1e6eb;
    box-shadow: 0 1px 2px rgba(44,62,80,0.05);
  }
}

.btn.large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

.btn i {
  margin-left: 10px;
}

/* =========================================================
   HERO SECTION  ▶  **re-engineered for flawless responsiveness**
   ========================================================= */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0;
    text-align: center;
}

.hero-image picture {
    display: block;
}

.hero-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Desktop/Laptop optimizations */
@media (min-width: 1025px) {
    .hero-image img {
        max-width: 114%; /* Changed from 125% to prevent overflow */
        width: 114%;
    }
}

/* Tablet - desktop mode */
@media (max-width: 1024px) and (min-width: 769px) and (pointer: fine) {
    .hero .container {
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-image {
        max-width: 400px;
    }
}

/* Tablet - touch mode or small tablets */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center; /* Ensure everything is centered */
    }
    
    .hero-content {
        text-align: center !important; /* Force center alignment */
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-align: center !important; /* Force center alignment */
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center !important; /* Force center alignment */
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-buttons {
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-image {
        order: -1;
        max-width: 350px;
        margin: 0 auto 25px;
    }
}

/* Mobile devices only */
@media (max-width: 768px) and (pointer: coarse) {
    .hero {
        padding: 90px 0 50px !important;
    }
    
    .hero .container {
        padding: 0 15px !important;
        gap: 25px !important;
        text-align: center !important; /* Force everything centered */
    }
    
    .hero-content {
        text-align: center !important; /* Force center alignment */
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
        text-align: center !important; /* Force center alignment */
        margin: 0 auto 1rem !important;
        width: 100% !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
        text-align: center !important; /* Force center alignment */
        margin: 0 auto 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    .cta-buttons .btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .hero-image {
        display: block !important;
        order: -1 !important;
        margin: 0 auto 20px !important;
        max-width: 100% !important;
        text-align: center !important;
    }
    
    .hero-image img {
        width: 85vw !important;
        max-width: 320px !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* Small mobile */
@media (max-width: 480px) and (pointer: coarse) {
    .hero-content {
        text-align: center !important; /* Force center alignment */
    }
    
    .hero-content h1 {
        font-size: 1.6rem !important;
        text-align: center !important; /* Force center alignment */
        margin: 0 auto 1rem !important;
    }
    
    .hero-content p {
        font-size: 0.95rem !important;
        text-align: center !important; /* Force center alignment */
        margin: 0 auto 1.2rem !important;
    }
    
    .cta-buttons {
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-image img {
        width: 90vw !important;
        max-width: 280px !important;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* On-brand blue gradient with soft glow for feature icons */
.feature-icon {
    background: linear-gradient(135deg, #eaf4fb 0%, #c5dff7 60%, #a8d2f5 100%);
    color: var(--primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    box-shadow:
        0 2px 8px rgba(52,152,219,0.10),
        0 0 0 6px rgba(52,152,219,0.07) inset;
    border: 1.5px solid #d0e6fa;
    transition: box-shadow 0.3s, background 0.3s;
}

.feature-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(52,152,219,0.10));
    transition: filter 0.3s;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #f5fbff 0%, #c2e0fa 100%);
    box-shadow:
        0 6px 18px rgba(52,152,219,0.16),
        0 0 0 10px rgba(52,152,219,0.09) inset;
    border-color: #b3d8f7;
}

.feature-card:hover .feature-icon img {
    filter: brightness(1.08) drop-shadow(0 2px 4px rgba(52,152,219,0.13));
}

/* How it Works Section */
.how-it-works {
    padding: 88px 0;
    background-color: var(--light);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step-number {
    background-color: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    flex-grow: 1;
}

.step-content h3 {
    margin-bottom: 10px;
}

.step-content p {
    margin-bottom: 0;
}

.steps .step:last-child {
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: linear-gradient(135deg, #fff, var(--light));
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(52,152,219,0.1);
    filter: none;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Blue circle above stars */
.blue-circle {
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px;
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.testimonial-quote {
    width: 30px;
    height: auto;
    vertical-align: middle;
    margin-right: 5px;
    display: inline-block;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
    text-align: center;
}

/* Position the quotation image as background */
.testimonial-card::before {
    content: "";
    background-image: url('quotation.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    opacity: 0.3; /* Slightly increased opacity for visibility */
    z-index: 0;
    /* Reduce blur significantly or remove completely */
    /* filter: blur(0.2px); Extremely subtle blur */
}

.testimonial-author {
    font-weight: 700;
    color: var (--dark);
    display: block;
    font-size: 1.1rem;
}

.testimonial-role {
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 5px;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Download CTA Section */
.download-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-dark) 100%);
    color: var(--white);
    text-align: center;
}

.download-cta h2, 
.download-cta p {
    color: var(--white);
}

.download-cta h2 {
    margin-bottom: 20px;
}

.download-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-cta .highlight {
    color: var(--accent);
}

.download-cta .btn.primary.large {
    background-color: var(--primary);
}

.download-cta .btn.primary.large:hover {
    transform: none;
    background-color: var(--primary-dark)
}

.browser-icons {
    margin-top: 30px;
}

.browser-icons img {
    height: 40px;
    margin: 0 10px;
}

/* Add hover effect to clickable browser icon */
.browser-icons a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.browser-icons a:hover {
    transform: translateY(-2px);
}

/* Resources Section */
.resources {
    padding: 100px 0;
    background-color: var(--light);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.resource-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.resource-card h3 {
    margin-bottom: 15px;
    color: var(--dark);
}

.resource-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.resource-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
}

.resource-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.resource-link:hover i {
    transform: translateX(5px);
}

/* Footer */
/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-logo {
    flex: 1;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    color: var(--light);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 60px;
    flex: 1;
    justify-content: flex-end;
}

.footer-column {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: left;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: var(--light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    text-align: left;
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.social-icon {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    vertical-align: middle;
    object-fit: contain;
    flex-shrink: 0; /* Prevent icons from shrinking */
}

/* Platform-specific hover effects for social icons */
.footer-column ul li a:hover .social-icon {
    opacity: 0.8;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Tablet responsive footer */
@media (max-width: 1024px) {
    .footer-links {
        gap: 40px;
    }
    
    .footer-column {
        text-align: left; /* Force left alignment on tablets */
    }
}

/* Mobile responsive footer - Enhanced alignment */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 0;
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 27px !important; /* Ensure consistent spacing */
        width: 100%;
    }
    
    .footer-column {
        text-align: left !important; /* Force left alignment for content */
        min-width: 120px;
        flex: 0 0 auto; /* Don't grow or shrink */
    }
    
    .footer-column h4 {
        text-align: left !important; /* Force left alignment for headings */
        margin-bottom: 18px;
    }
    
    .footer-column ul {
        text-align: left !important; /* Force left alignment for lists */
    }
    
    .footer-column ul li {
        text-align: left !important; /* Force left alignment for list items */
        margin-bottom: 12px;
    }
    
    .footer-column ul li a {
        text-align: left !important; /* Force left alignment for links */
        justify-content: flex-start !important; /* Align content to start */
        display: flex !important;
        align-items: center !important;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
/* Very small mobile devices */
@media (max-width: 480px) {
    .footer-links {
        flex-direction: row;
        justify-content: space-around;
        gap: 7px !important; /* Reduced from 15px to match 420px rule */
        width: 100%;
    }

    .footer-column {
        flex: 1;
        min-width: 100px;
        text-align: left !important;
    }
    
    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 15px;
        text-align: left !important;
    }

    .footer-column ul li {
        margin-bottom: 10px;
    }
    
    .footer-column ul li a {
        font-size: 0.85rem;
        text-align: left !important;
    }
    
    .social-icon {
        width: 29px;
        height: 29px;
        margin-right: 6px;
    }
}

/* Extra small screens - consistent with 480px rule */
/* Extra small screens - consistent with 480px rule */
@media (max-width: 420px) {
    .footer-links {
        flex-direction: row;
        gap: 0 !important; /* Remove gap to eliminate trailing space */
        align-items: flex-start;
        justify-content: space-between;
    }
    
    .footer-column {
        flex: 1;
        text-align: left !important;
        margin-right: 6px; /* Add spacing between columns */
    }
    
    /* Remove margin from the last column (Follow) to eliminate trailing gap */
    .footer-column:last-child {
        margin-right: 0;
    }
    
    .footer-column h4 {
        font-size: 0.9rem;
        text-align: left !important;
    }
    
    .footer-column ul {
        text-align: left !important;
    }
    
    .footer-column ul li a {
        justify-content: flex-start !important;
        text-align: left !important;
        font-size: 0.8rem;
    }
}


/* Privacy and Terms Pages */
.legal-page {
    padding: 160px 0 100px;
}

.legal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.legal-content h2 {
    text-align: left;
    border-bottom: 1px solid var(--light);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p, .legal-content ul, .legal-content ol {
    margin-bottom: 20px;
}

.legal-content ul, .legal-content ol {
    margin-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-date {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) and (pointer: coarse) {
    header {
        height: 60px; /* Reduced from 70px */
    }
    
    header .container {
        height: 60px; /* Reduced from 70px */
        padding: 0 15px; /* Slightly reduced horizontal padding */
    }
    
    /* Smaller logo on mobile */
    .logo img {
        height: 28px; /* Reduced from 32px */
    }
    
    /* Smaller logo text on mobile */
    .logo h1 {
        font-size: 1.2rem; /* Reduced from 1.3rem */
    }
    
    /* Adjust mobile menu position to match new header height */
    nav {
        top: 60px; /* Reduced from 70px */
    }
    
    /* Fix hero section spacing to prevent overlap with smaller header */
    .hero {
        padding-top: 80px; /* Adjusted to work with smaller header */
    }
    
    /* Reduce hero heading size on mobile */
    .hero-content h1 {
        font-size: 1.8rem; /* Reduced from 2.2rem */
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    /* Adjust mobile bottom nav to be more compact */
    .mobile-bottom-nav {
        padding: 8px 0; /* Slightly reduced padding */
    }
}

@media (max-width: 768px) and (pointer: coarse) {
    header {
        height: 70px;
    }
    
    header .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        height: 70px;
        padding: 0 20px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .logo img {
        height: 32px;
    }

    header .container {
        flex-direction: column;
        height: auto;
        padding: 20px;
    }
    
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px 10px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        max-width: 400px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
    
    .hero {
        padding: 100px 0 50px;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .feature-card, .step, .testimonial-card {
        padding: 20px;
    }

    .install-button {
        padding: 8px 15px;
        border-radius: 8px;
        font-size: 0.9rem;
    }
    
    .install-subtitle {
        display: none;
    }
    
    .pulse-dot {
        margin-right: 8px;
    }
    
    nav.active .install-button {
        width: 100%;
        justify-content: center;
    }
    
    nav.active .install-subtitle {
        display: inline-block;
    }

    /* Increase touch target sizes */
    nav ul li a, 
    .footer-column ul li a,
    .btn,
    .resource-link {
        padding: 10px 0;
        display: inline-block;
    }
    
    /* Add active states for touch */
    .feature-card:active,
    .testimonial-card:active,
    .btn:active {
        transform: scale(0.98);
    }
    
    /* Remove hover effects that don't work well on touch */
    .feature-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
    
    .footer-column {
        text-align: center;
        min-width: 120px;
    }

    .mobile-bottom-nav {
        display: none;
    }
}

@media (max-width: 480px) and (pointer: coarse) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-image {
        max-width: 320px;
    }

    .hero-content {
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .feature-grid, .resources-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

/* Chrome icon styling for when icon appears after text */
.chrome-icon-after {
    width: 23px;
    height: 23px;
    margin-left: 7px;
    vertical-align: middle;
    display: inline-block;
}

/* Download button in the navbar */
.download-button {
    background-color: var(--primary);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.download-button:hover {
    background-color: #3F00FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Add icon to main CTA button too */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Professional, high-converting install button */
.install-button {
    background: linear-gradient(120deg, var(--primary) 0%, var(--gradient-dark) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 
        0 4px 15px rgba(75, 108, 183, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

/* Modern hover effect */
.install-button:hover {
    transform: none;
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--gradient-dark) 100%);
    box-shadow: 
        0 8px 25px rgba(75, 108, 183, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Modernize the pulse dot */
.pulse-dot {
    width: 6px;
    height: 6px;
    background: #50E3C2;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px rgba(80, 227, 194, 0.5);
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(80, 227, 194, 0.8);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* Update text styling */
.install-button span {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.install-subtitle {
    font-size: 0.7rem;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #B7DCFF;
}

/* Add subtle shine effect */
.install-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.75s;
}

.install-button:hover::before {
    left: 125%;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Clean, professional enterprise-style button */
.pro-install-button {
    background-color: var(--primary);
    color: white;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pro-install-text {
    margin-right: 8px;
}

.pro-install-arrow {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.pro-install-button:hover {
    background-color: var(--primary-dark);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pro-install-button:hover .pro-install-arrow {
    transform: translateX(4px);
}

/* Distinctive, attention-grabbing button with blue theme */
.premium-install-button {
    background: linear-gradient(135deg, #3498db 0%, #1a76c5 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    transform: perspective(1px) translateZ(0);
}

.premium-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

.glow-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease;
}

.premium-install-button:hover {
    transform: translateY(-2px) perspective(1px) translateZ(0);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.4);
    color: white;
    background: linear-gradient(135deg, #1a76c5 0%, #3498db 100%);
}

.premium-install-button:hover .glow-effect {
    opacity: 0.2;
    animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        opacity: 0.1;
    }
}

/* Add to your styles.css file */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

@media (max-width: 768px) and (pointer: coarse) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 80px 20px 20px;
        margin: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    nav.active ul {
        right: 0;
    }
    
    nav ul li {
        margin: 15px 0;
        width: 100%;
        text-align: left;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px;
    }
    
    .footer-column {
        text-align: center;
        min-width: 120px;
    }
}

@media (max-width: 768px) and (pointer: coarse) {
  /* Optimize cards for better mobile density */
  .feature-card, .testimonial-card, .resource-card {
    padding: 16px;
    margin-bottom: 15px;
  }
  
  /* Use 2-column grid for feature cards on mobile */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* Make feature cards more compact */
  .feature-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
  }
  
  .feature-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
  }
  
  .feature-icon {
    width: 55px !important; /* Increased from 40px */
    height: 55px !important; /* Increased from 40px */
    margin-bottom: 12px;
  }
  
  .feature-icon img {
    width: 35px !important; /* Increased from default */
    height: 35px !important; /* Increased from default */
  }
  
  /* Improve how-it-works scrolling with pagination indicators */
  .steps-container {
    padding-bottom: 25px;
    position: relative;
  }
  
  .steps-container::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    height: 8px;
  }
  
  .steps-container .step {
    flex: 0 0 85%; /* Allow seeing a glimpse of the next card */
    padding: 12px;
  }
  
  /* Make testimonial cards more compact */
  .testimonial-card {
    padding: 18px 15px;
  }
  
  .blue-circle {
    width: 35px;
    height: 35px;
    margin-bottom: 10px;
  }
  
  .testimonial-stars {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .testimonial-content {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Resource section adjustments */
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .resource-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .resource-card p {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }
}

/* For very small screens, preserve single column but with optimized cards */
@media (max-width: 480px) and (pointer: coarse) {
  .feature-grid, .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  /* Smaller text for very small screens */
  .feature-card h3, .resource-card h3 {
    font-size: 0.95rem;
  }
  
  .feature-card p, .resource-card p {
    font-size: 0.8rem;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) and (pointer: coarse) {
  .mobile-only {
    display: list-item;
  }
}

@media (max-width: 768px) and (pointer: coarse) {
  /* Force smaller header height with !important */
  header {
    height: 59px !important;
  }
  
  header .container {
    height: 59px !important;
    padding: 0 15px !important;
  }
  
  /* Ensure logo is smaller for mobile */
  .logo img {
    height: 35px !important;
  }
  
  .logo h1 {
    font-size: 1.2rem !important;
  }
  
  /* Critical: increase hero section top padding to prevent overlap */
  .hero {
    padding-top: 90px !important;
  }
  
  /* Adjust legal pages padding too */
  .legal-page {
    padding-top: 90px !important;
  }
}

/* Smaller mobile menu toggle */
@media (max-width: 768px) and (pointer: coarse) {
  .mobile-menu-toggle {
    width: 24px !important; /* Reduced from 30px */
    height: 18px !important; /* Reduced from 21px */
  }
  
  .mobile-menu-toggle span {
    height: 3px !important; /* Reduced from 3px for more refined look */
    border-radius: 3px !important;
  }
  
  /* Adjust the rotation transforms for the active state */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }
}

/* Add this rule at the end of the file to hide the mobile bottom navigation */
.mobile-bottom-nav {
    display: none !important; /* Hide the mobile bottom navigation completely */
}

/* Remove the extra padding from footer since we're removing the mobile navigation */
@media (max-width: 768px) and (pointer: coarse) {
    footer {
        padding-bottom: 20px !important; /* Reset to normal padding instead of 80px */
    }
}

/* Hide install button in mobile toggle menu */
@media (max-width: 768px) and (pointer: coarse) {
  /* Hide the install button in the mobile menu */
  nav ul li:last-child {
    display: none !important;
  }
  
}

/* Shift mobile menu items to top */
@media (max-width: 768px) and (pointer: coarse) {
  /* Reduce top padding to move menu items higher */
  nav ul {
    padding: 20px 20px 20px !important; /* Reduced from 80px to 30px */
  }
  
  /* Add extra spacing between menu items for better readability */
  nav ul li {
    margin: 12px 0 !important;
  }
  
  /* Adjust the position of the first menu item */
  nav ul li:first-child {
    margin-top: 0 !important;
  }
  
  /* Make mobile menu links slightly larger for better touch targets */
  nav ul li a {
    font-size: 1.1rem !important;
    padding: 8px 0 !important;
  }
}

/* Mobile optimizations for buttons and spacing */
@media (max-width: 768px) and (pointer: coarse) {
  /* Make the "Add to Chrome" button smaller on mobile */
  .install-button {
    padding: 6px 12px;
    font-size: 0.85rem;
    gap: 8px;
  }
  
  /* Make the pulse dot smaller */
  .pulse-dot {
    width: 5px;
    height: 5px;
  }
  
  /* Reduce the CTA section padding */
  .download-cta {
    padding: 60px 0;
  }
  
  /* Smaller CTA heading on mobile */
  .download-cta h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }
  
  /* Smaller CTA text on mobile */
  .download-cta p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  /* Adjust the CTA button to be more compact */
  .download-cta .btn.primary.large {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* Maintain desktop styles for hover-capable devices (prevents mail app issue) */
@media (max-width: 768px) and (pointer: fine) {
  .mobile-menu-toggle {
    display: none !important;
  }
  
  nav ul {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  
  nav ul li {
    margin: 0 0 0 1.5rem !important;
  }
  
  nav ul li:last-child {
    display: block !important;
  }
}

/* Force mobile behavior in landscape orientation for actual mobile devices */
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  /* Keep mobile header styling */
  header {
    height: 59px !important;
  }
  
  header .container {
    height: 59px !important;
    padding: 0 15px !important;
  }
  
  .logo img {
    height: 35px !important;
  }
  
  .logo h1 {
    font-size: 1.2rem !important;
  }
  
  /* Keep mobile menu toggle visible and functional */
  .mobile-menu-toggle {
    display: flex !important;
    width: 24px !important;
    height: 18px !important;
    z-index: 1001 !important;
  }
  
  .mobile-menu-toggle span {
    height: 3px !important;
    width: 100% !important;
    background-color: var(--dark) !important;
    border-radius: 3px !important;
    transition: var(--transition) !important;
  }
  
  /* Fix mobile menu toggle transforms */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
  }
  
  /* Maintain mobile navigation behavior */
  nav ul {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80% !important;
    max-width: 300px !important;
    height: 100vh !important;
    background-color: var(--white) !important;
    flex-direction: column !important;
    padding: 20px 20px 20px !important;
    margin: 0 !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
    transition: right 0.3s ease !important;
    z-index: 1000 !important;
    list-style: none !important;
    display: flex !important;
  }
  
  nav.active ul {
    right: 0 !important;
  }
  
  nav ul li {
    margin: 12px 0 !important;
    width: 100% !important;
    text-align: left !important;
    display: block !important;
  }
  
  nav ul li:first-child {
    margin-top: 0 !important;
  }
  
  nav ul li:last-child {
    display: none !important;
  }
  
  nav ul li a {
    font-size: 1.1rem !important;
    padding: 8px 0 !important;
    color: var(--dark) !important;
    font-weight: 500 !important;
    display: block !important;
  }
  
  nav ul li a:hover {
    color: var(--primary) !important;
  }
  
  /* Enable body scroll lock when menu is open */
  body.menu-open {
    overflow: hidden !important;
  }
  
  /* Optimize hero section for landscape */
  .hero {
    padding-top: 70px !important;
    padding-bottom: 30px !important;
  }
  
  .hero .container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .hero-content {
    text-align: center !important;
  }
  
  .hero-content h1 {
    font-size: 1.6rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .hero-content p {
    font-size: 1rem !important;
    margin-bottom: 1.2rem !important;
  }
  
  /* Center CTA buttons in landscape mode */
  .cta-buttons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    width: 100% !important;
  }
  
  .cta-buttons .btn {
    flex: 0 0 auto !important;
    margin: 0 !important;
    min-width: 140px !important;
  }
  
  .hero-image {
    display: block !important;
    margin: 0 auto 15px !important;
    max-width: 100% !important;
    max-height: 40vh !important;
  }
  
  .hero-image img {
    width: auto !important;
    max-width: 280px !important;
    max-height: 35vh !important;
    height: auto !important;
    margin: 0 auto 15px !important;
    display: block !important;
    object-fit: contain !important;
  }
  
  /* Keep mobile button optimizations */
  .install-button {
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
    gap: 8px !important;
  }
  
  .pulse-dot {
    width: 5px !important;
    height: 5px !important;
  }
  
  .download-cta {
    padding: 50px 0 !important;
  }
  
  .download-cta h2 {
    font-size: 1.4rem !important;
    margin-bottom: 15px !important;
  }
  
  .download-cta p {
    font-size: 1rem !important;
    margin-bottom: 20px !important;
  }
  
  .download-cta .btn.primary.large {
    padding: 10px 20px !important;
    font-size: 0.95rem !important;
  }
  
  /* Keep mobile grid layouts */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  
  .feature-card {
    padding: 16px !important;
  }
  
  .feature-card h3 {
    font-size: 1rem !important;
    margin-bottom: 6px !important;
  }
  
  .feature-card p {
    font-size: 0.85rem !important;
  }
  
  .feature-icon {
    width: 55px !important;
    height: 55px !important;
    margin-bottom: 12px !important;
  }
  
  .feature-icon img {
    width: 35px !important;
    height: 35px !important;
  }
  
  /* Keep mobile footer styling */
  .footer-content {
    flex-direction: column !important;
    gap: 30px !important;
    text-align: center !important;
  }
  
  .footer-links {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 40px !important;
  }
  
  .footer-column {
    text-align: center !important;
    min-width: 120px !important;
  }
  
  footer {
    padding-bottom: 20px !important;
  }
}

/* Fix hero image overflow ONLY on devices where it's actually overflowing */

/* Small laptops where 123% causes overflow - reduce size only */
@media (max-width: 1440px) and (min-width: 1200px) {
    .hero-image img {
        max-width: 114% !important; /* Reduce from 123% */
        width: 114% !important;
        /* No margin-left shift - keep centered naturally */
    }
}

/* Medium laptops where overflow occurs - more conservative */
@media (max-width: 1200px) and (min-width: 1025px) {
    .hero-image img {
        max-width: 112% !important; /* Even smaller */
        width: 112% !important;
        /* No margin-left shift */
    }
}

/* Tablet landscape where overflow definitely happens */
@media (max-width: 1024px) and (min-width: 768px) and (orientation: landscape) {
    .hero-image {
        overflow: hidden; /* Contain any overflow */
    }
    
    .hero-image img {
        max-width: 108% !important; /* Very conservative */
        width: 108% !important;
        /* No margin-left shift */
    }
}

/* Keep desktop 123% size ONLY on large screens where it works */
@media (min-width: 1600px) {
    .hero-image img {
        max-width: 125% !important; /* Keep original size on large screens */
        width: 125% !important;
        /* No margin-left shift needed */
    }
}

/* Increase spacing specifically for Support and Legal sections to match Follow */
.footer-column:nth-child(1) ul li, /* Support column */
.footer-column:nth-child(2) ul li { /* Legal column */
    margin-bottom: 27px !important; /* Increased from 15px to match Follow spacing */
}

/* Keep Follow section with current spacing */
.footer-column:nth-child(3) ul li { /* Follow column */
    margin-bottom: 16px; /* Keep current spacing since icons add visual height */
}

/* Mobile adjustments - increase spacing on mobile too */
@media (max-width: 768px) {
    .footer-column:nth-child(1) ul li, /* Support column */
    .footer-column:nth-child(2) ul li { /* Legal column */
        margin-bottom: 22px !important; /* Increased from 12px */
    }
    
    .footer-column:nth-child(3) ul li { /* Follow column */
        margin-bottom: 12px; /* Keep current mobile spacing */
    }
}

/* Very small mobile adjustments */
@media (max-width: 480px) {
    .footer-column:nth-child(1) ul li, /* Support column */
    .footer-column:nth-child(2) ul li { /* Legal column */
        margin-bottom: 22px !important; /* Consistent spacing */
    }
    
    .footer-column:nth-child(3) ul li { /* Follow column */
        margin-bottom: 10px; /* Slightly reduced for mobile */

    }
    
}

/* =========================
   MOBILE FOOTER LAYOUT FIX
   Ensures equal left/right page edge spacing and consistent gaps
   ========================= */
@media (max-width: 768px) {
  footer .footer-links {
    /* Shrink-wrap to content and center */
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 0 16px !important; /* Controls equal edge spacing */
    gap: 22px !important;
    justify-content: center !important;
  }
  footer .footer-links .footer-column {
    flex: 0 0 auto !important; /* Prevent stretch */
    min-width: 90px !important;
    margin: 0 !important;
    text-align: left !important;
  }
  /* Neutralize earlier space-around / space-between variants */
  @supports (inset: 0) {
    /* Extra guard to defeat legacy rules */
    .footer-links[style] { justify-content: center !important; }
  }
}

@media (max-width: 480px) {
  footer .footer-links {
    gap: 18px !important;
    padding: 0 14px !important;
  }
  footer .footer-links .footer-column {
    min-width: 80px !important;
  }
}

@media (max-width: 400px) {
  footer .footer-links {
    flex-wrap: wrap !important; /* Allow wrap only when truly needed */
    row-gap: 14px !important;
    gap: 16px !important;
    padding: 0 12px !important;
  }
}

@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  footer .footer-links {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    width: auto !important;
    margin: 0 auto !important;
    padding: 0 14px !important;
    gap: 18px !important;
    justify-content: center !important;
  }
  footer .footer-links .footer-column {
    flex: 0 0 auto !important;
    min-width: 80px !important;
  }
}

/* === Testimonial Section Fix (override) === */
.testimonial-grid {
  align-items: stretch;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 24px 24px;
  gap: 0; /* we’ll manage spacing per element */
  position: relative;
}

/* Hide legacy decorative circle */
.blue-circle { display: none !important; }

/* Avatar normalization:
   If you have a specific class (e.g., <img class="testimonial-avatar">) this targets it.
   Fallback selectors catch first/only img near top of card. */
.testimonial-card .testimonial-avatar,
.testimonial-card > img:first-of-type {
  width: var(--ts-avatar,110px);
  height: var(--ts-avatar,110px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 2px 0 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  border: 2px solid rgba(52,152,219,0.12);
  background: #fff;
  image-rendering: -webkit-optimize-contrast;
}

/* Stars: tighten gap */
.testimonial-stars {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: 2px;
  line-height: 1;
}

/* Inline quotation image alignment (keep, but align lower) */
.testimonial-quote {
  width: 22px;
  margin: 0 6px 0 0;
  vertical-align: text-top;
  transform: translateY(3px);
  opacity: 0.7;
}

/* Remove italic + reduce bottom gap */
.testimonial-content {
  font-style: normal;
  margin: 0 0 14px;
  line-height: 1.55;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

/* Suppress large centered background quote to avoid duplication */
.testimonial-card::before {
  display: none;
}

/* Author + role spacing */
.testimonial-author {
  color: var(--dark); /* fix invalid var syntax */
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.testimonial-role {
  margin-top: 4px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
}

/* Vertical rhythm: push author block slightly away from text if needed */
.testimonial-author,
.testimonial-role { text-align: center; }

/* Responsive avatar scaling + tighter gaps */
@media (max-width: 1024px) {
  .testimonial-card .testimonial-avatar,
  .testimonial-card > img:first-of-type {
    --ts-avatar: 100px;
    margin-bottom: 6px;
  }
  .testimonial-content { margin-bottom: 12px; }
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 18px 18px 20px;
  }
  .testimonial-card .testimonial-avatar,
  .testimonial-card > img:first-of-type {
    --ts-avatar: 90px;
    margin-bottom: 5px;
  }
  .testimonial-stars { margin-bottom: 6px; font-size: 0.95rem; }
  .testimonial-content { font-size: 0.95rem; margin-bottom: 10px; }
}

@media (max-width: 520px) {
  .testimonial-card .testimonial-avatar,
  .testimonial-card > img:first-of-type {
    --ts-avatar: 80px;
    margin-bottom: 4px;
  }
  .testimonial-stars { margin-bottom: 5px; }
  .testimonial-content { font-size: 0.92rem; margin-bottom: 9px; }
  .testimonial-quote { transform: translateY(2px); }
}

@media (max-width: 400px) {
  .testimonial-card .testimonial-avatar,
  .testimonial-card > img:first-of-type {
    --ts-avatar: 72px;
    margin-bottom: 3px;
  }
  .testimonial-stars { margin-bottom: 4px; }
  .testimonial-content { margin-bottom: 8px; }
}

/* Touch adjustments: disable hover lift on touch devices if defined elsewhere */
@media (hover: none) {
  .testimonial-card:hover {
    transform: none !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }
}

/* === Testimonial Color Enhancement (on-brand) === */
.testimonials {
  --t-card-bg-main: linear-gradient(145deg,#ffffff 0%,#f2f8fc 40%,#e6f2f9 100%);
  --t-card-bg-accent: radial-gradient(circle at 115% -10%, rgba(52,152,219,0.28) 0%, rgba(52,152,219,0) 62%);
  --t-card-border: rgba(52,152,219,0.18);
  --t-card-shadow: 0 6px 20px -6px rgba(0,64,128,0.20), 0 2px 6px rgba(0,0,0,0.05);
  --t-card-shadow-hover: 0 14px 38px -10px rgba(0,64,128,0.35), 0 5px 14px -2px rgba(0,0,0,0.08);
  --t-accent-bar: linear-gradient(90deg,#3498db 0%,#00308F 100%);
  --t-avatar-size: 130px;
  --t-avatar-size-md: 117px;
  --t-avatar-size-sm: 108px;
  --t-avatar-size-xs: 94px;
  --t-avatar-ring: conic-gradient(from 200deg,#3498db,#0077c0 55%,#00308F 85%,#3498db);
  --t-avatar-ring-padding: 4px;
  --t-avatar-gap: 6px;
  --t-avatar-gap-sm: 4px;
}

.testimonial-card {
  background: var(--t-card-bg-main), var(--t-card-bg-accent);
  border: 1px solid var(--t-card-border);
  box-shadow: var(--t-card-shadow);
  position: relative;
  transition: box-shadow .55s cubic-bezier(.19,1,.22,1), transform .55s cubic-bezier(.19,1,.22,1);
  backdrop-filter: saturate(125%) blur(3px);
}

.testimonial-card::before {
  /* remove old centered quotation background */
  content: none !important;
}

.testimonial-card::after {
  content: "";
  font-size: 0.72rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  color: #1f6ead;
}

/* Remove legacy blue circle artifact completely */
.blue-circle { display: none !important; }

/* Responsive scaling */
@media (max-width: 1024px) {
  .testimonial-card img:not(.testimonial-quote) {
    width: var(--t-avatar-size-md);
    height: var(--t-avatar-size-md);
    margin-bottom: var(--t-avatar-gap-sm);
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 20px 20px 22px;
  }
  .testimonial-card img:not(.testimonial-quote) {
    width: var(--t-avatar-size-sm);
    height: var(--t-avatar-size-sm);
  }
  .testimonial-stars { font-size: 0.95rem; margin-bottom: 5px; }
  .testimonial-content { font-size: 0.95rem; margin-bottom: 10px; }
}

@media (max-width: 520px) {
  .testimonial-card img:not(.testimonial-quote) {
    width: var(--t-avatar-size-xs);
    height: var(--t-avatar-size-xs);
    padding: 3px;
  }
  .testimonial-content { font-size: 0.92rem; margin-bottom: 9px; }
  .testimonial-stars { margin-bottom: 4px; }
}

@media (max-width: 400px) {
  .testimonial-card img:not(.testimonial-quote) {
    padding: 3px;
    margin-bottom: 3px;
  }
  .testimonial-content { margin-bottom: 8px; }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .testimonial-card,
  .testimonial-card:hover {
    transition: none;
    transform: none;
  }
  .testimonial-card::after {
    transition: none;
    transform: scaleX(1);
  }
}

/* Optional dark-mode future proof */
body.dark-mode .testimonial-card {
  background: linear-gradient(150deg,#1d2a34,#223746 60%,#1d2f3d);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 6px 24px -8px rgba(0,0,0,0.65);
}
body.dark-mode .testimonial-card::after { opacity: .95; }
body.dark-mode .testimonial-content { color: #dfebf2; }
body.dark-mode .testimonial-role { color: #4da5e6; }
body.dark-mode .testimonial-card img:not(.testimonial-quote) {
  border-color: rgba(0,0,0,0.4);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.65);
}

/* === Testimonial Stars Enhanced (Text Variant) === */
.testimonial-stars {
  position: relative;
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 1.1rem;
  line-height: 1;
  background: linear-gradient(90deg,#ffce54,#f39c12 55%,#ffb347);
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(255,255,255,0.4));
}

.testimonial-stars::after {
  /* subtle inner glow ring effect */
  content: attr(data-stars); /* optional: set data-stars="★★★★★" in HTML for redundancy */
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#ffd87a,#ffae42);
  -webkit-background-clip: text;
  color: transparent;
  mix-blend-mode: overlay;
  opacity: .35;
  pointer-events: none;
}

.testimonial-card:hover .testimonial-stars {
  background: linear-gradient(90deg,#ffe08e,#ffb347 50%,#f39c12);
  -webkit-background-clip: text;
}

@media (max-width: 768px) {
  .testimonial-stars {
    font-size: 0.95rem;
    letter-spacing: 3px;
  }
}

/* === Testimonial No-Flicker Hard Override === */
.testimonials.no-flicker .testimonial-card,
.testimonial-card.no-flicker {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  animation: none !important;
  transition: box-shadow .4s ease, background-color .4s ease;
  will-change: auto !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  contain: paint; /* lighter than layout/style */
  isolation: auto;
}

/* Neutralize any entrance / animate classes */
.testimonials.no-flicker .testimonial-card.animate,
.testimonials.no-flicker .testimonial-card.tc-enter,
.testimonials.no-flicker .testimonial-card.tc-entered {
  opacity: 1 !important;
  transform: none !important;
}

/* Replace hover lift translate (can cause re-paint) with subtle shadow + scale */
@media (hover:hover) {
  .testimonials.no-flicker .testimonial-card:hover {
    transform: none !important;
    box-shadow: 0 10px 26px -8px rgba(0,64,128,0.28), 0 2px 6px rgba(0,0,0,0.06);
    scale: 1.01;
  }
}

/* Stabilize pseudo-elements: remove transform, minimize blend */
.testimonials.no-flicker .testimonial-card::before,
.testimonials.no-flicker .testimonial-card::after {
  transform: none !important;
  mix-blend-mode: normal !important;
  will-change: opacity;
}

/* Ensure image dimensions are locked (prevents collapse flash) */
.testimonials.no-flicker .testimonial-card img:not(.testimonial-quote) {
  display: block;
  width: 110px; /* adjust if you changed size */
  height: 110px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Guard against inline styles injected elsewhere */
.testimonials.no-flicker .testimonial-card[style*="opacity: 0"],
.testimonials.no-flicker .testimonial-card[style*="display: none"],
.testimonials.no-flicker .testimonial-card[style*="visibility: hidden"] {
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
}

/* Remove perspective that can trigger layer reallocation */
.testimonial-grid {
  perspective: none !important;
}

/* === Restore Testimonial Gradient Ring + Top Accent Line === */
.testimonials {
  --t-ring-thickness: 3px; /* adjust avatar ring thickness */
  --t-ring-gradient: conic-gradient(from 200deg,#3498db,#0077c0 55%,#00308F 85%,#3498db);
  --t-accent-gradient: linear-gradient(90deg,#3498db 0%,#0077c0 45%,#00308F 100%);
  --t-accent-height: 4px;
}

/* Avatar gradient ring (padding method) */
.testimonial-card img:not(.testimonial-quote) {
  background: var(--t-ring-gradient) border-box !important;
  padding: var(--t-ring-thickness) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 14px -6px rgba(0,64,128,0.35);
  border: 2px solid rgba(255,255,255,0.55) !important; /* inner crisp edge */
  position: relative;
  z-index: 1;
}

/* Top gradient accent line (separate pseudo so old ones don’t conflict) */
.testimonial-card {
  position: relative;
}

.testimonial-card::after {
  content: "" !important;
  position: absolute;
  left: 0;
  top: 0;
  height: var(--t-accent-height);
  width: 100%;
  background: var(--t-accent-gradient);
  opacity: .9;
  pointer-events: none;
  z-index: 2;
  transform-origin: left;
  transition: transform .6s cubic-bezier(.19,1,.22,1), opacity .4s;
  transform: scaleX(1);
}

/* Optional hover polish (only on pointer devices) */
@media (hover:hover) {
  .testimonial-card:hover::after {
    opacity: 1;
  }
  .testimonial-card:hover img:not(.testimonial-quote) {
    filter: saturate(1.12) brightness(1.02);
  }
}

/* Reduced motion: keep static */
@media (prefers-reduced-motion: reduce) {
  .testimonial-card::after {
    transition: none;
  }
}

/* Responsive minor tweak: slimmer bar on very small screens */
@media (max-width: 480px) {
  .testimonials { --t-accent-height: 3px; --t-ring-thickness: 2.5px; }
}

/* === Logo reset to classic minimal style === */
.logo a {
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  gap: 0 !important;                 /* cancel any flex gap that inflated spacing */
  border-radius: 0 !important;
  position: relative;
  color: var(--dark) !important;
  text-decoration: none;
  transition: none;
}

/* Kill any underlines / bars injected via pseudo elements */
.logo a::before,
.logo a::after {
  content: none !important;
  display: none !important;
}

.logo img {
  margin-right: 10px !important;     /* original spacing */
  transition: filter .18s ease;
  display: inline-block;
}

/* Hover: keep color the same; only a tiny clarity boost on the image */
@media (hover:hover) {
  .logo a:hover {
    color: var(--dark) !important;   /* no blue change */
  }
  .logo a:hover img {
    filter: brightness(1.04) saturate(1.04);
  }
}

/* Active: no shift */
.logo a:active {
  transform: none !important;
  filter: none;
}

/* Keyboard accessibility */
.logo a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Touch: no hover simulation */
@media (hover:none) {
  .logo a:hover img {
    filter: none;
  }
}

/* === Minimal Logo Hover (no rise) === */
.logo a {
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  color: var(--dark) !important;
  position: relative;
  text-decoration: none;
  line-height: 1;
  transition: color .20s ease;
}

.logo img {
  margin-right: 10px !important;
  display: inline-block;
  transition: filter .25s ease;
}

/* Underline (draws from center) */
.logo a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  height: 1px;
  width: 0;
  background: rgba(44,62,80,0.55);
  transform: translateX(-50%);
  transition: width .28s ease, background-color .25s ease;
  pointer-events: none;
}

/* Hover: only underline + mild text tint, no motion */
@media (hover:hover) {
  .logo a:hover {
    color: #223445; /* slightly deeper than var(--dark) */
  }
  .logo a:hover::after {
    width: 100%;
  }
  .logo a:hover img {
    filter: brightness(1.04) saturate(1.03);
  }
}

/* Keyboard focus: clear outline, no underline forced */
.logo a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Active click: no shift */
.logo a:active {
  transform: none !important;
}

/* Touch: suppress hover underline */
@media (hover:none) {
  .logo a::after { display: none; }
  .logo a:hover img { filter: none; }
}
