/**
 * RankMonitor Global Styles
 * Complete stylesheet for entire public-facing site
 * NO page should need additional CSS unless truly unique
 * 
 * RESPONSIVE BREAKPOINTS (Standardized):
 * =======================================
 * Desktop:       1024px and above
 * Tablet:        768px - 1023px
 * Mobile:        320px - 767px
 * Small Mobile:  320px - 480px (minor adjustments only)
 * 
 * DO NOT add custom breakpoints without team approval.
 * All breakpoints use max-width for mobile-first approach.
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Brand Colors */
    --primary-purple: #5D3FD3;
    --primary-purple-dark: #4A32A8;
    --primary-purple-light: #7F5FE8;
    
    /* Accent Colors */
    --accent-green: #10B981;
    --accent-blue: #3B82F6;
    --accent-red: #EF4444;
    --accent-orange: #F59E0B;
    
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F3F4F6;
    --bg-purple-light: #FAF9FC;
    --bg-dark: #1F2937;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --text-white: #FFFFFF;
    
    /* Border & Divider */
    --border-color: #E5E7EB;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;
    --font-size-5xl: 48px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 70px;
}

/* ============================================
   TYPOGRAPHY - GLOBAL HEADINGS & TEXT
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 36px;
    font-weight: 900;
}

h2 {
    font-size: 34px;
    font-weight: 800;
}

h3 {
    font-size: 24px;
    font-weight: 700;
}

h4 {
    font-size: 24px;
    font-weight: 600;
}

h5 {
    font-size: 20px;
    font-weight: 600;
}

h6 {
    font-size: 18px;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-secondary);
}

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

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

ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-sm);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-xl);
}

.content-section {
    margin-bottom: var(--spacing-3xl);
}

/* ============================================
   PAGE HEADER - USED ON ALL PAGES
   ============================================ */
.page-header {
    background: var(--primary-purple);
    padding: 40px var(--spacing-xl) 70px;
    text-align: center;
    color: white;
}

.page-header h1 {
    color: white;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
}

.page-header p {
    font-size: var(--font-size-xl);
    color: white;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Ensure consistent spacing after page header */
.page-header + * {
    padding-top: var(--spacing-3xl) !important;
}

.page-header + * .container,
.page-header + * .container-sm,
.page-header + * .container-lg {
    padding-top: 0 !important;
}

/* Section Backgrounds for Contrast */
.section-white {
    background: white;
    padding: var(--spacing-3xl) 0;
}

.section-gray {
    background: var(--bg-secondary);
    padding: var(--spacing-3xl) 0;
}

.section-light-purple {
    background: var(--bg-purple-light);
    padding: var(--spacing-3xl) 0;
}

/* Remove double padding when container is inside section */
.section-white .container,
.section-white .container-sm,
.section-white .container-lg,
.section-gray .container,
.section-gray .container-sm,
.section-gray .container-lg,
.section-light-purple .container,
.section-light-purple .container-sm,
.section-light-purple .container-lg {
    padding-top: 0;
    padding-bottom: 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.purple {
    background: var(--primary-purple);
}

.header.purple .logo,
.header.purple .nav-link,
.header.purple .hamburger span {
    color: white;
}

.header.scrolled {
    background: white;
    box-shadow: var(--shadow-md);
}

.header.scrolled .logo,
.header.scrolled .nav-link,
.header.scrolled .hamburger span {
    color: var(--primary-purple);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    transition: color var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo i {
    font-size: 24px;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Mobile Menu - Hamburger & Full Screen Modal */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    width: 32px;
    height: 32px;
    z-index: 1001;
}

.hamburger {
    position: relative;
    width: 24px;
    height: 18px;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.header.scrolled .hamburger span {
    background: var(--text-primary);
}

.header.purple .hamburger span {
    background: white;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

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

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

.mobile-close-btn {
    position: absolute;
    top: 13px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: transform 0.3s;
}

.mobile-close-btn:hover {
    transform: scale(1.1) rotate(0deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    padding: 80px 40px 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 30px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: calc(100vh - 140px);
}

.mobile-nav-links li {
    margin: 0 0 12px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-nav-links li:nth-child(7) { transition-delay: 0.4s; }

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s;
    display: block;
    padding: 8px 16px;
    text-align: center;
}

.mobile-nav-links a:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-primary);
    color: var(--text-white);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 2fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-column h3 {
    color: white;
    font-size: var(--font-size-base);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
}

/* ============================================
   BUTTONS - ALL BUTTON STYLES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 24px;
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-purple);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-purple-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: white;
}

/* White Button with Purple Text (for purple form backgrounds) */
.btn-white-purple {
    background: white !important;
    color: var(--primary-purple) !important;
    border: 2px solid white;
}

.btn-white-purple:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-white-purple i {
    color: var(--primary-purple) !important;
}

.btn-large {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
}

.btn-small {
    padding: 8px 16px;
    font-size: var(--font-size-sm);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* CTA Buttons - used across site */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary-purple);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(93, 63, 211, 0.3);
    color: white;
}

.cta-button-large {
    padding: 20px 48px;
    font-size: var(--font-size-xl);
    font-weight: 800;
}

/* Responsive Text Display */
.mobile-only {
    display: none;
}

/* ============================================
   CARDS - ALL CARD STYLES
   ============================================ */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

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

.card-header {
    margin-bottom: var(--spacing-lg);
}

.card-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.card-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   FORMS - ALL FORM STYLES
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-of-type {
    margin-bottom: 20px;
}

/* Purple Form Card */
.form-card-purple {
    background: var(--primary-purple) !important;
    box-shadow: 0 15px 40px rgba(93, 63, 211, 0.5), 
                0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.form-card-purple h2,
.form-card-purple p,
.form-card-purple .form-label {
    color: white !important;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: white;
    box-shadow: 0 0 0 3px rgba(93, 63, 211, 0.1);
}

.form-textarea,
textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--accent-red);
    font-size: var(--font-size-sm);
    margin-top: var(--spacing-xs);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235D3FD3' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Honeypot - Anti-spam hidden field */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Cloudflare Turnstile Wrapper */
.turnstile-wrapper {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid var(--accent-green);
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid var(--accent-red);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #92400E;
    border: 1px solid var(--accent-orange);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1E3A8A;
    border: 1px solid var(--accent-blue);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: 20px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-green);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-orange);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
}

.badge-purple {
    background: var(--bg-purple-light);
    color: var(--primary-purple);
}

/* ============================================
   GRID SYSTEMS
   ============================================ */
.grid {
    display: grid;
    gap: var(--spacing-xl);
}

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

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

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

/* ============================================
   LEGAL PAGES - SHARED STYLES
   ============================================ */
.legal-doc h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.legal-doc .last-updated {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.legal-doc h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: var(--spacing-md);
}

.legal-doc h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.legal-doc p,
.legal-doc li {
    color: var(--text-secondary);
    font-size: 15px;
}

.highlight-box {
    background: var(--bg-purple-light);
    border-left: 4px solid var(--primary-purple);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    border-radius: var(--border-radius);
}

/* Cookie table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    font-size: var(--font-size-sm);
}

.cookie-table th {
    background: var(--bg-secondary);
    padding: 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.cookie-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

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

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

.text-white {
    color: white;
}

.text-purple {
    color: var(--primary-purple);
}

.bg-white {
    background: white;
}

.bg-secondary {
    background: var(--bg-secondary);
}

.bg-purple {
    background: var(--primary-purple);
}

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-2xl); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-lg); }
.pt-4 { padding-top: var(--spacing-xl); }
.pt-5 { padding-top: var(--spacing-2xl); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.pb-4 { padding-bottom: var(--spacing-xl); }
.pb-5 { padding-bottom: var(--spacing-2xl); }

/* ============================================
   DECORATIVE ELEMENTS (Responsive Typography)
   ============================================ */

/* Large price display (pricing page) */
.price-display {
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
}

/* Step number circles (how-it-works page) */
.step-number-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 900;
    color: white;
    margin: 0 auto 30px;
}

/* Large feature icons (about, features pages) */
.feature-icon-large {
    font-size: 40px;
}

/* Coming soon icon (blog page) */
.coming-soon-icon {
    font-size: 80px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   TABLET BREAKPOINT (768px - 1023px)
   ============================================ */

@media (max-width: 1023px) and (min-width: 768px) {
    
    /* === TYPOGRAPHY === */
    h1 {
        font-size: 30px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    h4 {
        font-size: 22px;
    }
    
    h5 {
        font-size: 18px;
    }
    
    h6 {
        font-size: 16px;
    }
    
    /* === DECORATIVE ELEMENTS === */
    .price-display {
        font-size: 64px;
    }
    
    .step-number-circle {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .coming-soon-icon {
        font-size: 60px;
    }
    
    /* Removed orphaned .hero styles - now using .page-header globally */
    
    /* === FORM ELEMENTS === */
    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px;
        padding: 12px 16px;
        border-radius: 10px;
    }
    
    .form-label,
    .form-group label {
        font-size: 15px;
    }
    
    .form-textarea {
        min-height: 130px;
    }
    
    /* === BUTTONS === */
    .submit-btn {
        font-size: 16px;
        padding: 14px 36px;
        min-height: 48px;
    }
    
    .cta-button {
        font-size: 15px;
        padding: 14px 28px;
        min-height: 48px;
    }
    
    .trust-badge {
        font-size: 12px;
    }
    
    /* === PAGE HEADER === */
    .page-header {
        padding: 30px 30px 50px 30px;
    }
    
    .page-header h1 {
        font-size: 30px;
    }
    
    .page-header p {
        font-size: 17px;
    }
    
    /* === FEATURES SECTION === */
    .features-section,
    .how-it-works,
    .cta-section {
        padding: 60px 30px;
    }
    
    /* Removed custom font sizes - using global H2 (32px on tablet) and p (16px) */
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    /* Grid layouts - stack single column on tablet */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 28px;
        border-radius: 16px;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
    
    .feature-card h3 {
        font-size: 22px;
    }
    
    .feature-card p {
        font-size: 15px;
    }
    
    /* === HOW IT WORKS === */
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .step-card {
        padding: 28px;
    }
    
    .step-number {
        width: 56px;
        height: 56px;
        font-size: 26px;
    }
    
    /* Removed .step-card h3 custom size - using global H3 (22px on tablet) */
    /* Removed .step-card p custom size - using global p (16px) */
    
    /* === CTA SECTION === */
    .cta-section {
        padding: 70px 30px;
    }
    
    /* Removed .cta-section p custom size - using global p (16px) */
    
    /* === NAVIGATION === */
    .header {
        padding: 16px 24px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 22px;
    }
    
    /* Hide desktop navigation on tablets - use hamburger menu */
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
}

/* ============================================
   MOBILE BREAKPOINT (320px - 767px)
   ============================================ */

@media (max-width: 767px) {
    /* Typography */
    h1 {
        font-size: 26px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    h4 {
        font-size: 18px;
    }
    
    h5 {
        font-size: 16px;
    }
    
    h6 {
        font-size: 14px;
    }
    
    /* Decorative Elements */
    .price-display {
        font-size: 48px;
    }
    
    .step-number-circle {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .feature-icon-large {
        font-size: 32px;
    }
    
    .coming-soon-icon {
        font-size: 50px;
    }
    
    /* Header */
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Footer */
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    /* Page Header */
    .page-header {
        padding: 20px var(--spacing-lg) 40px;
    }
    
    .page-header h1 {
        font-size: 26px;
    }
    
    .page-header p {
        font-size: var(--font-size-base);
    }
    
    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Containers */
    .container,
    .container-sm,
    .container-lg {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Buttons */
    .btn-large {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: inline;
    }
    
    /* Turnstile - compact size (130x120px) fits mobile perfectly */
    .turnstile-wrapper {
        margin: 20px 0;
    }
    
    /* Legal pages */
    .legal-doc h1 {
        font-size: 26px;
    }
    
    .legal-doc h2 {
        font-size: 20px;
    }
    
    .cookie-table {
        font-size: 13px;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .btn-large,
    .cta-button-large {
        padding: 14px 24px;
        font-size: var(--font-size-base);
    }
    
    .card {
        padding: var(--spacing-lg);
    }
}

/* ============================================
   HOMEPAGE (INDEX.PHP) NOW USES STANDARD GLOBAL CLASSES
   All homepage-specific styles removed - uses .page-header, .container, .card, etc.
   ============================================ */

/* ============================================
   THANK YOU PAGE SPECIFIC STYLES
   ============================================ */

/* Thank You Page Layout */
.thank-you-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 20px !important; /* Override global body padding-top */
}

.thank-you-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 60px 40px;
    max-width: 600px;
    text-align: center;
}

/* Status Icons */
.status-icon {
    font-size: 80px;
    margin-bottom: 30px;
}

.status-icon.pending {
    color: #FF9F43;
    animation: pulse 2s infinite;
}

.status-icon.processing {
    color: #5D3FD3;
    animation: spin 2s linear infinite;
}

.status-icon.completed {
    color: #00C896;
}

.status-icon.failed {
    color: #FF4757;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Thank You Headings */
.thank-you-container h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #1A1D2E;
}

.thank-you-container p {
    font-size: 18px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.thank-you-domain {
    font-weight: 700;
    color: #5D3FD3;
}

.thank-you-email {
    font-weight: 600;
    color: #00C896;
}

/* Status Box */
.status-box {
    background: #F7FAFC;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.status-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 10px;
}

.status-label.pending {
    color: #FF9F43;
}

.status-label.processing {
    color: #5D3FD3;
}

.status-label.completed {
    color: #00C896;
}

.status-label.failed {
    color: #FF4757;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5D3FD3, #00C896);
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 10%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 10%;
    }
}

/* Info Boxes */
.info-box {
    background: #EEF2FF;
    border-left: 4px solid #5D3FD3;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.info-box p {
    font-size: 14px;
    color: #4B32A8;
    margin: 0;
    line-height: 1.6;
}

.success-box {
    background: #D1FAE5;
    border-left: 4px solid #00C896;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.success-box p {
    font-size: 14px;
    color: #065F46;
    margin: 0;
    line-height: 1.6;
}

.error-box {
    background: #FEE2E2;
    border-left: 4px solid #FF4757;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.error-box p {
    font-size: 14px;
    color: #991B1B;
    margin: 0;
    line-height: 1.6;
}

/* Timeline */
.timeline {
    text-align: left;
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding-left: 20px;
}

.timeline-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 12px;
    flex-shrink: 0;
}

.timeline-icon.done {
    background: #00C896;
    color: white;
}

.timeline-icon.current {
    background: #5D3FD3;
    color: white;
    animation: pulse 2s infinite;
}

.timeline-icon.pending {
    background: #E5E7EB;
    color: #9CA3AF;
}

/* Thank You Button */
.thank-you-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #5D3FD3;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s;
}

.thank-you-btn:hover {
    background: #4B32A8;
    color: white;
}

/* Responsive */
@media (max-width: 767px) {
    .thank-you-container {
        padding: 40px 30px;
    }
    
    .thank-you-container h1 {
        font-size: 26px;
    }
    
    .thank-you-container p {
        font-size: 16px;
    }
    
    .status-icon {
        font-size: 60px;
    }
}

/* ============================================
   STATUS PAGE STYLES (Thank You Page)
   ============================================ */

/* Status Page Layout */
.status-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.status-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 60px 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
}

/* Status Icons */
.status-icon {
    font-size: 80px;
    margin-bottom: 30px;
}

.status-icon.status-processing {
    color: #FF9F43;
    animation: pulse 2s infinite;
}

.status-icon.status-processing i.fa-cog {
    color: #5D3FD3;
    animation: spin 2s linear infinite;
}

.status-icon.status-success {
    color: #00C896;
}

.status-icon.status-error {
    color: #FF4757;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status Text */
.status-subtitle {
    font-size: 18px;
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.highlight-purple {
    font-weight: 700;
    color: #5D3FD3;
}

.highlight-green {
    font-weight: 600;
    color: #00C896;
}

/* Status Box */
.status-box {
    background: #F7FAFC;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}

.status-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 10px;
}

.status-box-processing .status-label {
    color: #5D3FD3;
}

.status-box-success .status-label {
    color: #00C896;
}

.status-time {
    font-size: 14px;
    color: #6B7280;
    margin: 10px 0 0 0;
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5D3FD3, #00C896);
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 10%; }
    50% { width: 70%; }
    100% { width: 10%; }
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.alert i {
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.alert-info {
    background: #EEF2FF;
    border-left: 4px solid #5D3FD3;
    color: #4B32A8;
}

.alert-success {
    background: #D1FAE5;
    border-left: 4px solid #00C896;
    color: #065F46;
}

.alert-error {
    background: #FEE2E2;
    border-left: 4px solid #FF4757;
    color: #991B1B;
}

.alert strong {
    display: block;
    margin-bottom: 4px;
}

/* Timeline */
.status-timeline {
    text-align: left;
    margin: 30px 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding-left: 20px;
}

.timeline-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 12px;
    flex-shrink: 0;
}

.timeline-done .timeline-icon {
    background: #00C896;
    color: white;
}

.timeline-current .timeline-icon {
    background: #5D3FD3;
    color: white;
    animation: pulse 2s infinite;
}

.timeline-pending .timeline-icon {
    background: #E5E7EB;
    color: #9CA3AF;
}

/* Status Helper Text */
.status-refresh {
    font-size: 14px;
    color: #9CA3AF;
    margin-top: 20px;
}

.status-help {
    font-size: 14px;
    color: #6B7280;
    margin: 20px 0;
}

/* Button in Status Page */
.status-container .btn {
    margin-top: 20px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .status-page {
        padding: 20px 15px;
    }
    
    .status-container {
        padding: 40px 20px;
        border-radius: 12px;
    }
    
    .status-container h1 {
        font-size: 24px;
    }
    
    .status-icon {
        font-size: 60px;
    }
    
    .status-subtitle {
        font-size: 16px;
    }
    
    .timeline-item {
        padding-left: 0;
        font-size: 14px;
    }
}


/* ============================================
   THANK YOU PAGE - MOBILE FIXES ONLY
   ADD THESE TO THE END OF styles.css
   ============================================ */

/* Fix: Text overflow in "Safe to close this tab!" box */
.info-box {
    background: #EEF2FF;
    border-left: 4px solid #5D3FD3;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
    overflow: hidden; /* Prevent text overflow */
}

.info-box p {
    font-size: 14px;
    color: #4B32A8;
    margin: 0;
    line-height: 1.6;
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word; /* Better word breaking */
}

/* Mobile-specific fixes for compactness */
@media (max-width: 767px) {
    /* Reduce overall padding */
    .thank-you-container {
        padding: 30px 20px !important; /* Reduced from 40px 30px */
    }
    
    /* Smaller status icon */
    .status-icon {
        font-size: 50px !important; /* Reduced from 60px */
        margin-bottom: 20px !important;
    }
    
    /* Smaller heading */
    .thank-you-container h1 {
        font-size: 22px !important; /* Reduced from 26px */
        margin-bottom: 15px !important;
    }
    
    /* Smaller body text */
    .thank-you-container p {
        font-size: 15px !important; /* Reduced from 16px */
        margin-bottom: 12px !important;
    }
    
    /* Compact info box with word wrapping */
    .info-box {
        padding: 12px !important; /* Reduced from 16px */
        margin: 15px 0 !important; /* Reduced from 20px */
    }
    
    .info-box p {
        font-size: 13px !important; /* Reduced from 14px */
        line-height: 1.5 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Compact status box */
    .status-box {
        margin: 15px 0 !important; /* Reduced from 20px */
        padding: 15px !important;
    }
    
    .status-label {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
    
    /* Compact timeline */
    .timeline {
        margin: 15px 0 !important; /* Reduced spacing */
    }
    
    .timeline-item {
        margin-bottom: 10px !important; /* Reduced from default */
    }
    
    .timeline-icon {
        width: 36px !important; /* Slightly smaller */
        height: 36px !important;
        font-size: 14px !important;
    }
    
    .timeline-item span {
        font-size: 14px !important; /* Slightly smaller */
    }
    
    /* Compact success/error boxes */
    .success-box,
    .error-box {
        padding: 12px !important;
        margin: 15px 0 !important;
    }
    
    /* Reduce bottom text size */
    .thank-you-container > p:last-child {
        font-size: 13px !important;
        margin-top: 10px !important;
    }
}

/* Extra compact for small phones */
/* NOTE: This breakpoint only affects thank-you page. Consider refactoring to use 480px breakpoint instead. */
@media (max-width: 375px) {
    .thank-you-container {
        padding: 25px 18px !important;
    }
    
    .status-icon {
        font-size: 45px !important;
        margin-bottom: 15px !important;
    }
    
    .thank-you-container h1 {
        font-size: 20px !important;
    }
    
    .thank-you-container p {
        font-size: 14px !important;
    }
    
    .info-box p {
        font-size: 12px !important;
    }
    
    .timeline-item span {
        font-size: 13px !important;
    }
}
