/* ==========================================================================
   fuelsaver.pro · Content pages (index, privacy, terms, contact)
   Editorial layout — readable, credible, minimal conversion elements
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Libre Franklin', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #1E293B;
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: #0A2540; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #16A34A; }
img { max-width: 100%; display: block; }

:root {
  --brand: #0A2540;
  --brand-deep: #061A30;
  --accent: #16A34A;
  --accent-dark: #15803D;
  --ink: #0F172A;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --bg-alt: #F8FAFC;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { color: inherit; }
.site-logo-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: #FEF3C7;
  border-radius: 8px;
}
.site-logo-icon svg { width: 20px; height: 20px; }
.site-logo-text { font-size: 15px; letter-spacing: -.3px; }
.cfp-car, .cfp-finders, .cfp-dot { color: var(--brand); }
.cfp-pro { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--brand); }

.site-nav .nav-cta {
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: 0 2px 0 #14532D;
  animation: navCtaRing 2.6s ease-out infinite;
}
.site-nav .nav-cta:hover {
  filter: brightness(1.05);
  animation-play-state: paused;
}
@keyframes navCtaRing {
  0%   { box-shadow: 0 2px 0 #14532D, 0 0 0 0 rgba(22, 163, 74, .55); }
  70%  { box-shadow: 0 2px 0 #14532D, 0 0 0 10px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 2px 0 #14532D, 0 0 0 0 rgba(22, 163, 74, 0); }
}
@media (max-width: 520px) {
  .site-nav a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta {
    font-size: 12px;
    padding: 7px 10px;
    letter-spacing: 0;
  }
  .site-nav .nav-cta .cta-long { display: none; }
  .site-header { padding: 12px 16px; }
}
.site-nav .nav-cta .cta-short { display: none; }
@media (max-width: 520px) {
  .site-nav .nav-cta .cta-short { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav .nav-cta { animation: none; }
}

/* --- Hero --- */
.hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, #F8FAFC 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--brand);
  margin-bottom: 18px;
}
.hero .lead {
  font-size: clamp(17px, 2.4vw, 19px);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
}

/* --- Content blocks --- */
.block {
  padding: 56px 0;
}
.block.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.block h2 {
  font-size: clamp(24px, 3.8vw, 30px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--brand);
  margin-bottom: 18px;
  line-height: 1.2;
}
.block p {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text);
}
.block p strong { color: var(--brand); font-weight: 700; }

/* --- Stat cards --- */
.stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.block.alt .stat-card { background: #fff; }
.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--brand);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 4px;
  letter-spacing: 0;
}
.stat-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- Inline CTA --- */
.inline-cta {
  margin-top: 24px;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.inline-cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  margin-bottom: 4px;
}
.inline-cta-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}
.inline-cta-title em {
  font-style: italic;
  color: var(--accent-dark);
}
.calc-cta-inline {
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 0 #14532D;
  transition: transform .12s ease, filter .12s ease;
}
.calc-cta-inline:hover {
  filter: brightness(1.05);
  color: #fff !important;
  transform: translateY(-1px);
}

/* --- State comparison --- */
.state-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0 12px;
}
.state-col-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
  margin-bottom: 10px;
}
.state-table,
.history-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}
.state-table td,
.history-table td,
.history-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.state-table tr:last-child td,
.history-table tr:last-child td { border-bottom: none; }
.state-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--brand);
}
.history-table th {
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}
.history-table td:nth-child(2) {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}
.note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* --- Cost breakdown bar --- */
.breakdown {
  margin: 20px 0 28px;
}
.bd-bar {
  display: flex;
  width: 100%;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}
.bd-seg {
  display: grid;
  place-items: center;
  padding: 0 4px;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.seg-1 { background: #0A2540; }
.seg-2 { background: #1E3A5F; }
.seg-3 { background: #16A34A; }
.seg-4 { background: #15803D; }

/* --- Factor list --- */
.factor-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.factor-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
}
.factor-list li:last-child { border-bottom: none; }
.factor-list li::before {
  content: '•';
  position: absolute;
  left: 8px; top: 14px;
  color: var(--accent);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
}
.factor-list li strong { color: var(--brand); }

/* --- Sources list --- */
.sources {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.sources li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.sources li:last-child { border-bottom: none; }
.sources li strong {
  display: block;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 2px;
}
.sources a {
  color: var(--accent-dark, var(--accent));
  text-decoration: underline;
}

/* --- Tips (ordered list styled) --- */
.tips {
  list-style: none;
  padding: 0;
  counter-reset: tips;
  margin-top: 8px;
}
.tips li {
  counter-increment: tips;
  position: relative;
  padding: 20px 0 20px 60px;
  border-bottom: 1px solid var(--border);
}
.tips li:last-child { border-bottom: none; }
.tips li::before {
  content: counter(tips);
  position: absolute;
  left: 0; top: 20px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.tips h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 4px;
}
.tips p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.calc-cta {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 0 #14532D;
  transition: transform .12s ease, filter .12s ease;
}
.calc-cta:hover {
  filter: brightness(1.05);
  color: #fff !important;
  transform: translateY(-1px);
}

/* --- FAQ --- */
.faq {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.faq:last-child { border-bottom: none; }
.faq h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 8px;
}
.faq p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

/* --- Generic content page (privacy, terms, contact) --- */
.page-body {
  padding: 48px 0 64px;
}
.page-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  margin: 32px 0 10px;
  letter-spacing: -.3px;
}
.page-body h2:first-child { margin-top: 0; }
.page-body p {
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--text);
}
.page-body ul {
  margin: 0 0 16px 24px;
  padding: 0;
}
.page-body li {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

/* --- Contact form --- */
.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-top: 20px;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
  letter-spacing: .2px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}
.form-submit {
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 0 #14532D;
  transition: transform .12s ease, filter .12s ease;
}
.form-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.form-submit:active { transform: translateY(1px); }

.form-success {
  display: none;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--accent-dark);
  font-weight: 600;
  margin-top: 14px;
}

/* --- Footer --- */
.footer {
  background: var(--brand-deep);
  color: #94A3B8;
  text-align: center;
  font-size: 13px;
  padding: 32px 20px 36px;
  margin-top: 0;
}
.footer p { margin-bottom: 8px; }
.footer a {
  color: #CBD5E1;
  text-decoration: underline;
}
.footer a:hover { color: #fff; }
.footer .disclaimer {
  font-size: 12px;
  opacity: .75;
  max-width: 560px;
  margin: 10px auto 0;
  line-height: 1.55;
}

/* --- Responsive --- */
@media (min-width: 720px) {
  .stat-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .state-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .inline-cta { padding: 20px 24px; }
  .block { padding: 72px 0; }
  .hero { padding: 80px 0 60px; }
}
