/* Sales-CS.com — shared stylesheet
   System-font, mobile-first, no framework. */

:root {
  --color-bg: #f7f9fc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #475569;
  --color-border: #e2e8f0;
  --color-primary: #1d4ed8;
  --color-primary-hover: #1e40af;
  --color-primary-soft: #eff4ff;
  --color-accent: #0ea5e9;
  --color-warning-bg: #fff8e6;
  --color-warning-border: #fde68a;
  --color-success: #047857;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", sans-serif;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-dot { color: var(--color-primary); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  font: inherit;
  cursor: pointer;
}
.nav-toggle .bars {
  display: inline-block;
  width: 18px; height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0; width: 18px; height: 2px;
  background: currentColor;
}
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0;
}
.nav-list.is-open {
  display: flex;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: .5rem 1.25rem 1rem;
}
.nav-list a {
  display: block;
  padding: .75rem 0;
  color: var(--color-text);
  font-weight: 500;
}
.nav-list a:hover { color: var(--color-primary); text-decoration: none; }
.nav-list a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 720px) {
  .nav-toggle { display: none; }
  .nav-list,
  .nav-list.is-open {
    display: flex !important;
    flex-direction: row;
    gap: 1.75rem;
    position: static;
    padding: 0;
    border: 0;
    background: none;
  }
  .nav-list a { padding: .25rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 120ms ease, transform 80ms ease, box-shadow 120ms ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-hover); }

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary-soft); }

.btn-block { display: block; text-align: center; width: 100%; }

/* ---------- Page hero ---------- */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, #eef3fc 0%, var(--color-bg) 100%);
  text-align: center;
}
.hero h1 { margin-bottom: .35em; }
.hero p.lede {
  max-width: 640px;
  margin: 0 auto 1.5em;
  font-size: 1.125rem;
  color: var(--color-muted);
}
.hero-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-title {
  padding: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.page-title h1 { margin: 0; }
.page-title .subtitle {
  color: var(--color-muted);
  margin-top: .35em;
  margin-bottom: 0;
}

/* ---------- Sections ---------- */
section { padding: 3rem 0; }
section + section { padding-top: 0; }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { margin-bottom: .25em; }
.section-title p {
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Highlighted/warning card */
.card.callout {
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
}

/* ---------- Affiliate offer card ---------- */
.offer {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.offer:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.offer-thumb {
  aspect-ratio: 700 / 389;
  background: #e2e8f0;
  overflow: hidden;
}
.offer-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.offer-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: .9rem;
  background: linear-gradient(135deg, #eef3fc, #e2e8f0);
}
.offer-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  flex: 1;
}
.offer-body h3 {
  margin: 0;
  font-size: 1.05rem;
}
.offer-body .num {
  display: inline-block;
  color: var(--color-muted);
  font-weight: 500;
  font-size: .85rem;
  margin-right: .35rem;
}
.offer .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: var(--color-primary); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 400;
  line-height: 1;
  transition: transform 150ms ease;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding-top: .75rem; color: var(--color-muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Prose (policy pages) ---------- */
.prose {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto;
}
.prose h2 {
  margin-top: 2em;
  font-size: 1.25rem;
  color: var(--color-primary);
  letter-spacing: 0;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; font-size: 1.05rem; }
.prose ol, .prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .35em; }
.prose strong { color: var(--color-text); }
.prose .meta {
  color: var(--color-muted);
  font-size: .9rem;
  margin-bottom: 2em;
}

/* ---------- Contact form ---------- */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 640px;
  margin: 0 auto;
}
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}
.form-field label {
  font-weight: 600;
  margin-bottom: .35rem;
  font-size: .95rem;
}
.form-field .hint {
  font-size: .85rem;
  color: var(--color-muted);
  margin-top: .25rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  font: inherit;
  padding: .7rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--color-primary);
}
.req { color: #b91c1c; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
.site-footer h4 {
  color: #fff;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .8rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer ul li { margin-bottom: .35rem; }
.site-footer .small {
  font-size: .85rem;
  color: #94a3b8;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: .85rem;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
