/* === LOGISTRYX — Core Styles === */
:root {
  --primary: #0f4c81;
  --accent: #00b4d8;
  --dark: #0d1117;
  --light: #f8f9fa;
  --text: #2d3748;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --max-width: 1100px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  font-size: 16px;
}

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

/* === HEADER === */
header {
  background: var(--dark);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

nav a {
  color: #cbd5e1;
  margin-left: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover { color: #fff; text-decoration: none; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a2744 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.2;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover { background: #0096b7; text-decoration: none; transform: translateY(-1px); }

/* === TRUST BAR === */
.trust-bar {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  text-align: center;
}

.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-item .icon { font-size: 1rem; }

/* === MAIN LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 60px 0; }
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}
.section-sub {
  color: var(--muted);
  margin-bottom: 40px;
  font-size: 1rem;
}

/* === CARD GRID === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #1a2744, #0f4c81);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.card-body { padding: 20px; }

.card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* === PRODUCT BOX === */
.product-box {
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
  background: #f0fbff;
}

.product-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.product-box .price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-box ul {
  list-style: none;
  margin-bottom: 20px;
}

.product-box ul li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.btn-amazon {
  display: inline-block;
  background: #ff9900;
  color: #111;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-amazon:hover { background: #e68900; text-decoration: none; }

/* === ARTICLE === */
.article-hero {
  background: linear-gradient(135deg, var(--dark), #1a2744);
  color: #fff;
  padding: 60px 24px;
}

.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  max-width: 800px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-hero .meta {
  color: #94a3b8;
  font-size: 0.9rem;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px;
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 12px;
}

.article-body p { margin-bottom: 20px; }

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li { margin-bottom: 8px; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.article-body th {
  background: var(--dark);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}

.article-body td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.article-body tr:nth-child(even) td { background: var(--light); }

.callout {
  background: #f0fbff;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout strong { color: var(--primary); }

/* === SIDEBAR LAYOUT === */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.sidebar-widget {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-widget h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* === RATINGS === */
.rating { color: #f59e0b; font-size: 1.1rem; }
.rating-score { font-weight: 800; font-size: 1.4rem; color: var(--dark); }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), #0d3b6e);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}

.cta-banner h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: #93c5fd; margin-bottom: 28px; font-size: 1.05rem; }

/* === FOOTER === */
footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo { font-size: 1.3rem; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }

footer h5 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

footer ul { list-style: none; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: #94a3b8; font-size: 0.85rem; }
footer ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1e2a3a;
  padding-top: 24px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.affiliate-notice {
  background: #1e2a3a;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.8rem;
  margin-bottom: 24px;
  color: #64748b;
}

/* === NEWSLETTER SIGNUP === */
.newsletter-section {
  background: linear-gradient(135deg, #0a2540 0%, var(--primary) 100%);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}

.newsletter-section .newsletter-inner {
  max-width: 620px;
  margin: 0 auto;
}

.newsletter-section .newsletter-badge {
  display: inline-block;
  background: rgba(0,180,216,0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.newsletter-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
}

.newsletter-section .newsletter-desc {
  color: #93c5fd;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.newsletter-section .newsletter-lead-magnet {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.newsletter-section .newsletter-lead-magnet span {
  display: inline-block;
  margin-right: 4px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto 16px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input[type="email"]::placeholder {
  color: #94a3b8;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.15);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: #0096b7;
  transform: translateY(-1px);
}

.newsletter-privacy {
  font-size: 0.78rem;
  color: #64748b;
}

.newsletter-privacy a { color: #93c5fd; }

/* -- Post article newsletter CTA -- */
.article-newsletter-cta {
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin: 48px 0 24px;
  text-align: center;
}

.article-newsletter-cta h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.article-newsletter-cta .cta-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.article-newsletter-cta .cta-lead-magnet {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.article-newsletter-cta .newsletter-form input[type="email"] {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.article-newsletter-cta .newsletter-form input[type="email"]::placeholder {
  color: var(--muted);
}

.article-newsletter-cta .newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
}

.article-newsletter-cta .newsletter-privacy {
  color: var(--muted);
}

.article-newsletter-cta .newsletter-privacy a {
  color: var(--primary);
}

/* -- Sticky footer newsletter bar -- */
.newsletter-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: #fff;
  padding: 14px 24px;
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(100%);
  animation: slideUp 0.4s ease-out 3s forwards;
}

@keyframes slideUp {
  to { transform: translateY(0); }
}

.newsletter-sticky-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.newsletter-sticky-inner .sticky-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.newsletter-sticky-inner .sticky-text strong {
  font-size: 0.9rem;
  white-space: nowrap;
}

.newsletter-sticky-inner .sticky-text span {
  color: #94a3b8;
  font-size: 0.8rem;
  display: none;
}

@media (min-width: 640px) {
  .newsletter-sticky-inner .sticky-text span { display: inline; }
}

.newsletter-sticky-inner .newsletter-form {
  margin: 0;
  max-width: 380px;
  flex: 1;
}

.newsletter-sticky-inner .newsletter-form input[type="email"] {
  padding: 10px 14px;
  font-size: 0.9rem;
}

.newsletter-sticky-inner .newsletter-form button {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.newsletter-sticky-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}

.newsletter-sticky-close:hover { color: #fff; }

/* -- Newsletter landing page -- */
.newsletter-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0a2540 50%, var(--primary) 100%);
  color: #fff;
  padding: 80px 24px 60px;
  text-align: center;
}

.newsletter-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  max-width: 650px;
  margin: 0 auto 16px;
  line-height: 1.2;
}

.newsletter-hero h1 span { color: var(--accent); }

.newsletter-hero p {
  color: #93c5fd;
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 32px;
}

.newsletter-benefits {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 24px;
}

.newsletter-benefits h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  text-align: center;
  margin-bottom: 32px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.benefit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.benefit-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: #f0fbff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.newsletter-embed-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px 60px;
  text-align: center;
}

.newsletter-embed-container .embed-box {
  background: var(--light);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.newsletter-embed-container .embed-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.newsletter-embed-container .embed-box .lead-magnet-tag {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-bar-inner { gap: 20px; }
  nav { display: none; }
}
