/* SmartSwitch24 – Global Stylesheet */

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

:root {
  --color-bg:        #ffffff;
  --color-text:      #1a2e4a;
  --color-text-light:#4a5e74;
  --color-primary:   #1a3a6b;
  --color-accent:    #f57c00;
  --color-accent-hv: #e65c00;
  --color-border:    #dde3eb;
  --color-surface:   #f4f7fb;
  --font-base:       'Segoe UI', Helvetica, Arial, sans-serif;
  --radius:          8px;
  --shadow:          0 2px 12px rgba(26,46,74,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 16px;
}

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

img { max-width: 100%; display: block; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── Header / Nav ──────────────────────────────────────────── */
header {
  background: var(--color-primary);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

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

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo span { color: var(--color-accent); }

nav { display: flex; gap: 8px; align-items: center; }

nav a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
}
nav a:hover, nav a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ── Affiliate Notice Banner ───────────────────────────────── */
.affiliate-notice {
  background: #fff8e1;
  border-left: 4px solid var(--color-accent);
  padding: 10px 20px;
  font-size: .85rem;
  color: #6d4c00;
}
.affiliate-notice strong { font-weight: 600; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1a3a6b 0%, #0d2248 100%);
  color: #fff;
  padding: 72px 20px 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.82);
  max-width: 620px;
  margin: 0 auto 32px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s, box-shadow .2s;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245,124,0,.35);
}
.btn-primary:hover {
  background: var(--color-accent-hv);
  box-shadow: 0 6px 18px rgba(245,124,0,.45);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-secondary:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn-lg { padding: 16px 40px; font-size: 1.1rem; }

/* ── Section generic ───────────────────────────────────────── */
section { padding: 60px 20px; }
section:nth-child(even) { background: var(--color-surface); }

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 600px;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(26,46,74,.13);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.card p { color: var(--color-text-light); font-size: .95rem; }

/* ── Product CTA Cards ─────────────────────────────────────── */
.product-cards {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 16px;
}

.product-card {
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.product-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 6px 28px rgba(245,124,0,.15);
  transform: translateY(-3px);
}
.product-card .card-icon { font-size: 3rem; }
.product-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.product-card p {
  color: var(--color-text-light);
  margin-bottom: 24px;
  font-size: .97rem;
}

/* ── Steps ─────────────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  margin: 0 auto 16px;
}
.step h4 {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-primary);
}
.step p { font-size: .9rem; color: var(--color-text-light); }

/* ── Widget section ────────────────────────────────────────── */
.widget-section {
  padding: 48px 20px;
  background: var(--color-surface);
}
.widget-wrapper {
  max-width: 900px;
  margin-inline: auto;
}
.widget-wrapper h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.widget-wrapper .sub {
  color: var(--color-text-light);
  margin-bottom: 32px;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 720px; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--color-border); }
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-primary);
}
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform .2s;
}
details[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 12px;
  color: var(--color-text-light);
  font-size: .96rem;
  line-height: 1.7;
}

/* ── Trust bar ─────────────────────────────────────────────── */
.trust-bar {
  background: var(--color-primary);
  color: rgba(255,255,255,.9);
  padding: 20px;
  text-align: center;
  font-size: .9rem;
}
.trust-bar strong { color: var(--color-accent); }

/* ── Page header (inner pages) ─────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, #1a3a6b 0%, #0d2248 100%);
  color: #fff;
  padding: 48px 20px 40px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
}
.page-header p {
  color: rgba(255,255,255,.8);
  margin-top: 10px;
  font-size: 1.05rem;
}

/* ── Prose (legal pages) ───────────────────────────────────── */
.prose {
  max-width: 760px;
  margin-inline: auto;
  padding: 48px 20px 64px;
}
.prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 32px 0 10px;
}
.prose h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 24px 0 8px;
}
.prose p { margin-bottom: 14px; color: var(--color-text-light); }
.prose ul, .prose ol { padding-left: 20px; margin-bottom: 14px; }
.prose li { margin-bottom: 6px; color: var(--color-text-light); }
.prose a { color: var(--color-primary); text-decoration: underline; }
.prose .placeholder {
  background: #fff3cd;
  border: 1px dashed #b8860b;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .9rem;
  color: #7d5900;
  display: inline-block;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: #0d2248;
  color: rgba(255,255,255,.7);
  padding: 40px 20px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}
.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  margin-bottom: 8px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--color-accent); text-decoration: none; }
.footer-bottom {
  max-width: 1100px;
  margin-inline: auto;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .82rem;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}
.footer-logo span { color: var(--color-accent); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
  }
  nav.open { display: flex; }
  nav a { padding: 12px 16px; font-size: 1rem; }

  .hero { padding: 48px 20px 40px; }

  section { padding: 44px 20px; }

  .footer-inner { flex-direction: column; gap: 24px; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .product-cards { grid-template-columns: 1fr; }
}
