/*
Theme Name: OneInbox Blocksy Child Theme
Theme URI: https://tryoneinbox.com/
Description: Lightweight, clean, and premium child theme for OneInbox MVP. Features Gmail-inspired SaaS branding, modern startup minimalism, soft premium UI, and a trust-focused design system.
Author: OneInbox Team
Author URI: https://tryoneinbox.com/
Template: blocksy
Version: 1.5.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, minimal, premium, startup-like, clean, modern-colors, conversion-focused, lightweight
*/

/* ==========================================================================
   1. Design System Tokens (CSS Custom Properties)
   ========================================================================== */
:root {
  /* Color Palette - OneInbox Premium SaaS Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  
  --accent-blue: #2563eb;       /* Primary OneInbox Blue */
  --accent-blue-hover: #1d4ed8;
  --accent-blue-light: #eff6ff; /* Soft Blue Badge Background */
  
  --text-main: #0f172a;         /* Slate 900 for high readability */
  --text-muted: #475569;        /* Slate 600 for supporting copy */
  --text-light: #64748b;        /* Slate 500 */
  
  --border-color: #e2e8f0;      /* Slate 200 */
  --border-color-hover: #cbd5e1; /* Slate 300 */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.03), 0 12px 20px -8px rgba(0, 0, 0, 0.03);

  /* Spacing Rhythm */
  --section-padding-desktop: 140px 0;
  --section-padding-mobile: 80px 0;
  --container-width: 1200px;
  
  /* Typography Hierarchy */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Global Theme Resets & Layout Standard
   ========================================================================== */
body {
  background-color: var(--bg-primary) !important;
  color: var(--text-main) !important;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

#main-container {
  background-color: var(--bg-primary) !important;
}

::selection {
  background: #dbeafe;
  color: var(--accent-blue);
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: var(--accent-blue-hover);
}

/* ==========================================================================
   3. Typography Scale & Headings (OneInbox Theme)
   ========================================================================== */
.hero-heading {
  font-size: clamp(40px, 5.8vw, 62px) !important;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 24px;
}

.hero-heading span.highlight-blue {
  color: var(--accent-blue);
}

.section-heading {
  font-size: clamp(30px, 4.2vw, 42px) !important;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-subtext {
  font-size: clamp(16px, 2.2vw, 19px) !important;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  margin-bottom: 48px;
}

.pill-badge {
  background-color: var(--accent-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--accent-blue);
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  box-shadow: 0 1px 2px 0 rgba(37, 99, 235, 0.05);
}

/* ==========================================================================
   4. Minimal Card & Layout Styling
   ========================================================================== */
.light-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  padding: 36px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.light-card-interactive:hover {
  transform: translateY(-4px);
  border-color: var(--border-color-hover) !important;
  box-shadow: var(--shadow-md);
}

/* Feature Grid Card icons styling */
.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-blue { background-color: #eff6ff; color: #2563eb; }
.icon-green { background-color: #f0fdf4; color: #16a34a; }
.icon-purple { background-color: #faf5ff; color: #9333ea; }
.icon-cyan { background-color: #ecfeff; color: #0891b2; }

/* ==========================================================================
   5. Clean Button Styles
   ========================================================================== */
.btn-primary-blue {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  padding: 16px 32px !important;
  border-radius: 14px !important;
  border: 1px solid #2563eb !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transition: var(--transition-smooth) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-transform: none !important;
}

.btn-primary-blue:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%) !important;
  border-color: #1d4ed8 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25), 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

.btn-secondary-light {
  background: #ffffff !important;
  color: var(--text-main) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  padding: 16px 32px !important;
  border-radius: 14px !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: var(--transition-smooth) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-secondary-light:hover {
  border-color: var(--border-color-hover) !important;
  background: #f8fafc !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md) !important;
}

.hero-social-proof {
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  margin-top: -28px;
  margin-bottom: 36px;
  opacity: 0.9;
}

/* ==========================================================================
   6. Custom UI Mockup & Routing Visualizations
   ========================================================================== */
.routing-flow-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 550px; /* 25% larger size */
  margin: 0 auto;
  padding: 36px 28px;
  background: radial-gradient(100% 100% at 0% 0%, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
  position: relative;
  gap: 8px;
}

.routing-flow-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
}

.routing-flow-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-md);
}

.routing-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.routing-flow-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.routing-flow-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
}

.badge-blue {
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.alias-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alias-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 8px;
  transition: var(--transition-smooth);
}

.alias-item:hover {
  border-color: var(--accent-blue);
  background: #ffffff;
}

.alias-icon {
  color: var(--text-light);
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.alias-text {
  font-size: 11px;
  font-family: monospace;
  color: var(--text-main);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.routing-flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 24px;
  height: 100%;
  z-index: 1;
}

.connector-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--border-color) 0%, var(--border-color-hover) 100%);
}

.connector-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: var(--transition-smooth);
}

.routing-flow-connector:hover .connector-arrow {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.routing-flow-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
}

.routing-flow-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.icon-blue-light {
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  border-color: rgba(37, 99, 235, 0.08);
}

.gmail-logo-wrapper {
  background-color: #ffffff;
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.routing-flow-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.routing-flow-card-title {
  font-weight: 700;
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.2;
}

.font-monospace {
  font-family: monospace;
}

.routing-flow-card-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

.routing-flow-status {
  background: #dcfce7;
  color: #16a34a;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid rgba(22, 163, 74, 0.1);
  margin-top: 2px;
}

.status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0.4; transform: scale(0.9); }
}

@media (max-width: 991px) {
  .routing-flow-container {
    flex-direction: column;
    padding: 32px 24px;
    max-width: 380px;
  }
  .routing-flow-card {
    width: 100%;
  }
  .routing-flow-connector {
    width: 100%;
    height: 24px;
  }
  .connector-line {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 2px;
    height: 100%;
  }
  .connector-arrow svg {
    transform: rotate(90deg);
  }
}

.hero-checklist-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   7. Pricing Hierarchy & Accents
   ========================================================================== */
.pricing-card-highlighted {
  border: 2px solid var(--accent-blue) !important;
  box-shadow: var(--shadow-premium) !important;
  position: relative;
}

.most-popular-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background-color: var(--accent-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* ==========================================================================
   8. Distraction-Free WooCommerce Checkout Overrides
   ========================================================================== */
.woocommerce-checkout {
  background-color: var(--bg-secondary);
}

.woocommerce-checkout form.checkout {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.woocommerce-checkout label {
  color: var(--text-main) !important;
  font-weight: 500;
  font-size: 14px;
}

.woocommerce-checkout input.input-text, 
.woocommerce-checkout textarea, 
.woocommerce-checkout select {
  background-color: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  transition: var(--transition-smooth);
}

.woocommerce-checkout input.input-text:focus, 
.woocommerce-checkout textarea:focus {
  border-color: var(--accent-blue) !important;
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.woocommerce-checkout #place_order {
  background: var(--accent-blue) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  border-radius: 8px !important;
  padding: 16px !important;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 4px 0 rgba(37, 99, 235, 0.15);
  border: 1px solid var(--accent-blue) !important;
}

.woocommerce-checkout #place_order:hover {
  background: var(--accent-blue-hover) !important;
  border-color: var(--accent-blue-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px 0 rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   9. Fluent Forms Stylings
   ========================================================================== */
.fluentform {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  padding: 48px !important;
  color: var(--text-main) !important;
  box-shadow: var(--shadow-md) !important;
}

.fluentform .ff-el-form-control {
  background: #ffffff !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
}

.fluentform .ff-el-form-control:focus {
  border-color: var(--accent-blue) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

.fluentform label {
  color: var(--text-main) !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
  font-size: 14px !important;
}

.fluentform button.ff-btn-submit {
  background: var(--accent-blue) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  border: 1px solid var(--accent-blue) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: var(--transition-smooth) !important;
}

.fluentform button.ff-btn-submit:hover {
  background: var(--accent-blue-hover) !important;
  border-color: var(--accent-blue-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* ==========================================================================
   10. Mobile Responsive Fixes
   ========================================================================== */
@media (max-width: 768px) {
  .hero-heading {
    margin-bottom: 16px;
  }
  
  .light-card {
    padding: 28px;
  }
  
  .woocommerce-checkout form.checkout, 
  .fluentform {
    padding: 28px !important;
  }
}

@media (max-width: 480px) {
  .routing-flow-container {
    padding: 20px 16px;
  }
  .routing-flow-card {
    padding: 14px 16px;
  }
  .alias-text, 
  .routing-flow-card-title {
    font-size: 12px;
  }
}

/* ==========================================================================
   11. Homepage Mobile-First Spacing Adjustments
   ========================================================================== */

/* Reset homepage wrappers & main containers to prevent duplicated gaps */
.home #main-container,
.home #primary,
.home .entry-content,
.home article {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Eliminate block margins on root sections to allow precise padding control */
.home .entry-content > .wp-block-group.alignfull {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* 1. Header to Hero spacing correction */
.home .ct-container-full {
  padding-top: 0 !important;
}

/* 2. Hero Spacing adjustments */
.home .entry-content > .wp-block-group.alignfull.hero-section-wrapper {
  padding-top: 30px !important;
  padding-bottom: 100px !important;
}

.hero-heading {
  margin-top: 0px !important;
  margin-bottom: 20px !important;
}

.pill-badge {
  margin-bottom: 16px !important;
}

.hero-section-wrapper p.wp-block-paragraph {
  margin-bottom: 32px !important;
}

.hero-section-wrapper .wp-block-buttons {
  margin-top: 0px !important;
  margin-bottom: 40px !important;
}

.hero-social-proof {
  margin-top: 0px !important;
  margin-bottom: 36px !important;
}

/* 3. Trust Strip spacing adjustments */
.home .entry-content > .wp-block-group.alignfull#features {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

/* 8. Pricing Heading inside #pricing section */
.home #pricing h2.section-heading {
  margin-top: 60px !important;
}

/* Tablet Override Styles */
@media (max-width: 1024px) {
  /* Standard Tablet Section Padding */
  .home .entry-content > .wp-block-group.alignfull {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
  
  /* Hero section tablet spacing */
  .home .entry-content > .wp-block-group.alignfull.hero-section-wrapper {
    padding-top: 24px !important;
    padding-bottom: 80px !important;
  }
  
  .home .pill-badge {
    margin-bottom: 14px !important;
  }
  
  .home .hero-heading {
    margin-top: 0px !important;
    margin-bottom: 16px !important;
  }
  
  .home .hero-section-wrapper p.wp-block-paragraph {
    margin-bottom: 28px !important;
  }
  
  .home .hero-section-wrapper .wp-block-buttons {
    margin-top: 0px !important;
    margin-bottom: 36px !important;
  }
  
  .home .hero-social-proof {
    margin-top: 0px !important;
    margin-bottom: 32px !important;
  }
  
  /* Trust strip tablet spacing */
  .home .entry-content > .wp-block-group.alignfull#features {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  
  /* Pricing inner heading spacing */
  .home #pricing h2.section-heading {
    margin-top: 50px !important;
  }
  
  /* Final CTA tablet padding */
  .home .entry-content > .wp-block-group.alignfull:nth-last-child(2) {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
  }
  
  /* Footer block tablet padding */
  .home .entry-content > .wp-block-group.alignfull:last-child {
    padding-top: 60px !important;
    padding-bottom: 30px !important;
  }
}

/* Mobile Override Styles */
@media (max-width: 768px) {
  /* Standard Mobile Section Padding */
  .home .entry-content > .wp-block-group.alignfull {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  
  /* Hero section mobile spacing */
  .home .entry-content > .wp-block-group.alignfull.hero-section-wrapper {
    padding-top: 20px !important;
    padding-bottom: 60px !important;
  }
  
  .home .pill-badge {
    margin-bottom: 12px !important;
  }
  
  .home .hero-heading {
    margin-top: 0px !important;
    margin-bottom: 12px !important;
  }
  
  .home .hero-section-wrapper p.wp-block-paragraph {
    margin-bottom: 24px !important;
  }
  
  .home .hero-section-wrapper .wp-block-buttons {
    margin-top: 0px !important;
    margin-bottom: 32px !important;
  }
  
  .home .hero-social-proof {
    margin-top: 0px !important;
    margin-bottom: 28px !important;
  }
  
  /* Trust strip mobile spacing */
  .home .entry-content > .wp-block-group.alignfull#features {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  
  /* Pricing inner heading spacing */
  .home #pricing h2.section-heading {
    margin-top: 40px !important;
  }
  
  /* Final CTA mobile padding */
  .home .entry-content > .wp-block-group.alignfull:nth-last-child(2) {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }
  
  /* Footer block mobile padding */
  .home .entry-content > .wp-block-group.alignfull:last-child {
    padding-top: 40px !important;
    padding-bottom: 20px !important;
  }
}

/* ==========================================================================
   12. Global Footer Styles
   ========================================================================== */
.oneinbox-global-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 60px 0;
  font-family: var(--font-sans);
  color: var(--text-muted);
  width: 100%;
}

.oneinbox-global-footer a {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.oneinbox-global-footer a:hover {
  color: var(--accent-blue);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1fr;
  gap: 48px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-column {
  gap: 20px;
}

.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-brand-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
  max-width: 320px;
}

.footer-copyright {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
  font-weight: 500;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  width: 100%;
}

.footer-column-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.footer-support-info {
  margin-top: 8px;
  font-size: 14px;
}

.footer-support-info p {
  margin: 0 0 4px 0;
  color: var(--text-light);
}

.footer-support-email {
  font-weight: 600;
  color: var(--text-main) !important;
}

.footer-support-email:hover {
  color: var(--accent-blue) !important;
}

/* Hide homepage legacy Gutenberg block footer */
.home .entry-content > .wp-block-group.alignfull:last-child {
  display: none !important;
}

/* Hide parent footer main widget area since we replaced it with our global footer */
.oneinbox-global-footer + [data-id="footer"] {
  border-top: none !important;
  padding-top: 0 !important;
}

/* If blocksy output footer is outputted, let's keep only the copyright row and hide top rows */
.ct-footer {
  background-color: var(--bg-primary) !important;
}
.ct-footer > .sub-footer {
  border-top: 1px solid var(--border-color) !important;
  padding: 24px 0 !important;
  background: var(--bg-secondary) !important;
}
.ct-footer > :not(.sub-footer) {
  display: none !important;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .brand-column {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .oneinbox-global-footer {
    padding: 48px 0 32px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .brand-column {
    grid-column: span 1;
  }
  .footer-column {
    gap: 12px;
  }
  .footer-links-list {
    gap: 8px;
  }
  .footer-bottom {
    margin-top: 32px;
    padding-top: 16px;
  }
}

/* ==========================================================================
   13. Legal, Policy & Support Pages Styling
   ========================================================================== */
.legal-page {
  max-width: 840px;
  margin: 0 auto;
  padding: 80px 24px;
  font-family: var(--font-sans);
}

.legal-hero {
  text-align: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 48px 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.legal-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 16px;
}

.legal-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 12px;
}

.legal-hero p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
  font-weight: 500;
}

.legal-content {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
  color: var(--text-main);
  margin-top: 48px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 24px;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 28px;
  padding-left: 24px;
}

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

.legal-content strong {
  color: var(--text-main);
}

/* Timeline Cards (How It Works page) */
.timeline-container {
  position: relative;
  margin: 40px 0;
  padding-left: 32px;
  border-left: 2px solid var(--border-color);
}

.timeline-step {
  position: relative;
  margin-bottom: 48px;
}

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

.timeline-step::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--accent-blue);
  box-shadow: 0 0 0 4px #ffffff;
  transition: var(--transition-smooth);
}

.timeline-step-number {
  display: inline-block;
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.timeline-step-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.timeline-step-content {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.timeline-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

/* Split Layout (Contact page) */
.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-detail-card h3 {
  margin-top: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-detail-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-detail-card a {
  font-weight: 600;
}

@media (max-width: 768px) {
  .contact-split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .timeline-container {
    padding-left: 24px;
  }
  .timeline-step::before {
    left: -33px;
    width: 16px;
    height: 16px;
    border-width: 3px;
  }
}
