/* ============================================================
   HOSTING COMPANY – Newsletter Styles
   Design: Modern Tech / Gradient Blue
   Author: {{author_name}}
   ============================================================ */

/* ------------------------------------------------------------
   CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --color-primary: #2563eb;
  --color-primary-dark: #1e3a8a;
  --color-primary-light: #3b82f6;
  --color-secondary: #7c3aed;
  --color-accent: #f59e0b;
  --color-success: #10b981;

  --color-bg: #f4f7fc;
  --color-bg-alt: #f8fafc;
  --color-bg-white: #ffffff;
  --color-bg-dark: #1e293b;

  --color-text: #1e293b;
  --color-text-secondary: #475569;
  --color-text-muted: #6b7a8f;
  --color-text-light: #94a3b8;
  --color-text-inverse: #ffffff;

  --color-border: #e2e8f0;
  --color-border-light: #e8edf3;

  /* Typography */
  --font-family: 'Inter', Arial, Helvetica, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 12px;
  --font-size-base: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 28px;
  --font-size-3xl: 36px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 30px;
  --space-4xl: 40px;
  --space-5xl: 50px;
  --space-6xl: 60px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 2px 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);
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  color: var(--color-text);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  border: 0;
  outline: none;
  text-decoration: none;
  -ms-interpolation-mode: bicubic;
}

a {
  transition: color 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

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

.hidden {
  display: none;
  font-size: 0;
  line-height: 0;
}

/* ------------------------------------------------------------
   BROWSER PREVIEW – Button Hover
   ------------------------------------------------------------ */
@media screen {
  td a:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  td a:active {
    transform: translateY(0);
  }

  .hero-gradient {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
  }

  .promo-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, var(--color-secondary) 100%);
  }
}

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media only screen and (max-width: 600px) {
  table[role="presentation"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  td[style*="padding:"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Stack columns */
  td[style*="width:50%"],
  td[style*="width:33.33%"],
  td[style*="width:25%"] {
    display: block !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Typography scaling */
  h1 { font-size: 28px !important; }
  h2 { font-size: 22px !important; }
  h3 { font-size: 16px !important; }

  /* Hero */
  td[style*="padding:60px"] {
    padding: 40px 20px !important;
  }

  /* Buttons full width on mobile */
  td a[style*="padding:16px 40px"],
  td a[style*="padding:14px 36px"] {
    display: block !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
  }

  /* Header: stack logo and nav */
  td[style*="padding:24px"] table tr {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  td[align="left"][valign="middle"],
  td[align="right"][valign="middle"] {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    padding: 4px 0 !important;
  }

  img[width="180"] {
    margin: 0 auto !important;
  }

  /* Plan cards stack */
  td[style*="width:33.33%"] {
    padding: 0 0 16px !important;
  }

  /* Feature grid */
  td[style*="width:50%"] {
    padding: 0 0 20px !important;
  }

  /* Stats */
  td[style*="width:25%"] {
    padding: 8px 4px !important;
  }
}

@media only screen and (max-width: 480px) {
  h1 { font-size: 24px !important; }
  h2 { font-size: 20px !important; }

  td[style*="padding:60px"] {
    padding: 30px 16px !important;
  }

  td[style*="padding:50px"] {
    padding: 30px 0 !important;
  }

  td[style*="padding:40px"] {
    padding: 30px 16px !important;
  }

  img[width="180"] {
    width: 140px !important;
    height: auto !important;
  }

  img[width="80"] {
    width: 60px !important;
    height: auto !important;
  }

  img[width="48"] {
    width: 40px !important;
    height: auto !important;
  }

  td[style*="font-size:28px"] {
    font-size: 22px !important;
  }
}
