:root {
  --ink: #e0e1dd;
  --bg: #0d1b2a;
  --panel: #1b263b;
  --brand-orange: #fb5924;
  --brand-orange-dk: #e34f1f;

  --content-max: 1000px;
  --gutter: 1.5rem;
  --header-h: 88px;
}

html {
  font-size: 18px;
  overflow-y: scroll;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 1rem/1.6 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container-1000 {
  width: 100%;
  max-width: var(--content-max);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

/* one uniform gap under header */
.page {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
.page > :first-child {
  margin-top: 0;
}

/* Headings */
h1 {
  color: #fff;
  font-weight: 600;
  font-size: 2rem;
  margin: 1.8rem 0 1rem;
}
h2 {
  color: #fff;
  font-weight: 600;
  font-size: 1.5rem;
  margin: 1.5rem 0 0.8rem;
}
h3 {
  color: #fff;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 1.2rem 0 0.6rem;
}
h4 {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 1rem 0 0.5rem;
}

.page-intro.purpose {
  color: #dcdcdc;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0.75rem 0 1.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Type & lists */
p {
  margin: 0 0 1rem 0;
}
main ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1rem 0;
}

/* Links */
a {
  color: #fca311;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Buttons (generic) */
button,
input[type='button'] {
  background: #fb5924;
  color: #fff;
  border: 0;
  border-radius: 5px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover,
input[type='button']:hover {
  background: #e85d04;
}

/* === Final bullets for 'Find Out Before You Spend' section === */
.final-bullets {
  list-style-type: disc;
  color: #ffffff;
  display: inline-block; /* centers the list block */
  text-align: left; /* keeps bullets and text aligned neatly */
  padding-left: 1.5rem;
  margin: 0 auto;
}

.final-bullets li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Code blocks */
pre {
  background: var(--panel);
  color: #fff;
  padding: 1rem;
  border-left: 4px solid #fca311;
  white-space: pre-wrap;
  margin: 0 0 1rem;
  font-family: monospace;
}

/* A11y helper */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Back-to-top FAB */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2147483647;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #fe6601;
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 20px/1 'Segoe UI', Roboto, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}
.back-to-top:hover {
  background: #e55a00;
}
.back-to-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Footer credit row */
.site-credit {
  max-width: var(--content-max);
  margin: 1rem auto 0;
  padding: 0.75rem 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #fff;
  opacity: 0.9;
}
.site-credit a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 2px;
}
.site-credit a:hover {
  text-decoration: underline;
}
.site-credit .credit-cta {
  margin-left: auto;
  background: #fe6601;
  color: #000;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}
.site-credit .credit-cta:hover {
  background: #e55a00;
}

/* Privacy policy */
.privacy-policy {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
}
.privacy-policy h1 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
}
.privacy-policy h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
  border-bottom: 1px solid #444;
  padding-bottom: 0.25rem;
}

/* Contact form (white fields) */
.contact-form {
  display: grid;
  gap: 1rem 1.25rem;
  grid-template-columns: 1fr;
  max-width: 720px;
}
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.contact-form input[type='text'],
.contact-form input[type='email'],
.contact-form textarea {
  width: 100%;
  background: #dde5f0;
  color: #0d1b2a;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
}
.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}
.contact-form .actions {
  margin-top: 0.25rem;
}
