/* ===========================================================
   saffiliate.online — stylesheet
   Plain, professional, neutral palette. Mobile-first responsive.
   =========================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --text: #1c1c1e;
  --text-muted: #5a5a60;
  --border: #e2e2e5;
  --accent: #1a5fb4;
  --accent-dark: #134a8e;
  --header-bg: #ffffff;
  --footer-bg: #20232a;
  --footer-text: #c7c9cf;
  --footer-text-muted: #8a8d96;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top notice bar ---------- */
.notice-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}
.notice-bar a { color: var(--accent); }

/* ---------- Header ---------- */
header.site {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  font-weight: 700;
  font-size: 21px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }

nav.main-nav { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
nav.main-nav a {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
}
nav.main-nav a:hover { color: var(--accent); }
nav.main-nav a.current { color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
}
.nav-cta:hover { background: var(--accent-dark); text-decoration: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 18px;
  cursor: pointer;
}

@media (max-width: 760px) {
  nav.main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  nav.main-nav.nav-open { display: flex; }
  .menu-toggle { display: block; }
  .nav-cta { order: 99; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--bg-alt); text-decoration: none; }
.btn-block { display: block; width: 100%; }
.btn-small { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--border); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--text);
}
.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 26px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-fineprint { font-size: 13px; color: var(--text-muted); margin-top: 14px; }

.hero-visual {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* simple, plain product placeholder card */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 24px;
  text-align: center;
  width: 100%;
  max-width: 260px;
}
.product-box {
  width: 90px;
  height: 110px;
  margin: 0 auto 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
}
.product-name { font-weight: 700; font-size: 17px; margin: 4px 0 2px; }
.product-tag { font-size: 13px; color: var(--text-muted); }
.stars { color: var(--accent); font-size: 14px; margin: 10px 0 0; }

/* ---------- Sections ---------- */
section { padding: 52px 0; border-bottom: 1px solid var(--border); }
section:last-of-type { border-bottom: none; }
.section-tight { padding: 36px 0; }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--footer-bg); color: var(--footer-text); border-bottom: none; }
.bg-dark h2, .bg-dark .eyebrow { color: #fff; }

h2.section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px;
  color: inherit;
}
p.section-sub {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 620px;
  margin-bottom: 32px;
}
.bg-dark p.section-sub { color: var(--footer-text); }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
}
.card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: left; padding: 0; }
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin: 0 0 6px; font-weight: 700; }
.step p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- Reviews ---------- */
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 22px;
}
.review-stars { color: var(--accent); font-size: 13px; margin-bottom: 10px; }
.review-card p.body { font-size: 14.5px; color: var(--text); margin: 0 0 14px; }
.review-name { font-weight: 700; font-size: 13.5px; }
.review-meta { font-size: 12.5px; color: var(--text-muted); }

.summary-bar {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 28px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.summary-score { font-size: 40px; font-weight: 700; }
.summary-score-sub { font-size: 12.5px; color: var(--text-muted); }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 5px; }
.bar-track { flex: 1; height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; min-width: 140px; }
.bar-fill { height: 100%; background: var(--accent); }

/* ---------- Comparison table ---------- */
table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
table.compare th, table.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
table.compare th { background: var(--bg-alt); font-weight: 700; }
table.compare tr:last-child td { border-bottom: none; }
table.compare .highlight-col { background: #eef4fb; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--accent); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { color: var(--text-muted); margin: 10px 0 0; font-size: 14.5px; }

/* ---------- Footer ---------- */
footer.site { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 32px; margin-bottom: 32px; }
footer.site h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 14px; }
footer.site a { color: var(--footer-text); font-size: 13.5px; display: block; margin-bottom: 9px; }
footer.site a:hover { color: #fff; }
.footer-logo { font-weight: 700; font-size: 19px; color: #fff; margin-bottom: 10px; }
.footer-disclaimer { font-size: 12px; color: var(--footer-text-muted); line-height: 1.65; border-top: 1px solid #34373f; padding-top: 20px; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--footer-text-muted); margin-top: 18px; flex-wrap: wrap; gap: 8px; }
.footer-contact p { font-size: 13.5px; margin: 0 0 8px; color: var(--footer-text); }

/* ---------- Inner page header ---------- */
.page-header { padding: 40px 0 32px; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 32px; font-weight: 700; margin: 0 0 10px; }
.page-header p { color: var(--text-muted); font-size: 15.5px; margin: 0; max-width: 620px; }

.legal-content { padding: 40px 0 64px; max-width: 760px; }
.legal-content h2 { font-size: 20px; margin: 32px 0 10px; font-weight: 700; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.legal-content ul { padding-left: 20px; }
.legal-content .updated { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 26px;
}
.contact-info-card h3 { margin: 0 0 16px; font-size: 17px; }
.contact-info-row { display: flex; gap: 12px; margin-bottom: 16px; font-size: 14.5px; }
.contact-info-row .label { color: var(--text-muted); min-width: 90px; font-weight: 600; }
.contact-info-row .value { color: var(--text); }

form.contact-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14.5px;
  font-family: var(--font-body);
  margin-bottom: 18px;
  background: #fff;
  color: var(--text);
}
form.contact-form textarea { min-height: 120px; resize: vertical; }

/* ---------- Misc ---------- */
.center { text-align: center; }
.muted { color: var(--text-muted); }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .footer-grid, .steps, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  table.compare { font-size: 12.5px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  h2.section-title { font-size: 23px; }
  .summary-bar { padding: 18px; }
}
