/* ===========================================
   NINE TO ZERO — MAIN STYLESHEET
   =========================================== */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; overflow-x: hidden }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #0b1220;
  color: #cbd5e1;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, pre { max-width: 100% }


/* --- Typography --- */
h1 { font-size: 48px; line-height: 1.08; letter-spacing: -.5px; color: #fff; margin-bottom: 20px }
h2 { font-size: 30px; line-height: 1.2; color: #fff; margin: 44px 0 14px }
h3 { font-size: 21px; line-height: 1.3; color: #f97316; margin: 28px 0 10px }
h4 { font-size: 17px; color: #e2e8f0; margin: 20px 0 8px }
p  { color: #cbd5e1; margin-bottom: 16px }
a  { color: #fdba74; text-decoration: none; transition: color .15s }
a:hover { color: #fff }
ul, ol { padding-left: 22px; color: #cbd5e1 }
li { margin-bottom: 6px }
strong { color: #e2e8f0 }


/* --- Layout --- */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}


/* --- Topbar --- */
.topbar {
  padding: 0 32px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11,18,32,.96);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-inner { display: flex; align-items: center; gap: 10px }
.brand-logo { width: 36px; height: 36px; flex-shrink: 0; display: block }
.brand-title { font-size: 17px; font-weight: 700; color: #fff; line-height: 1.1 }
.brand-sub { font-size: 11px; color: #64748b; line-height: 1.2 }
.nav { display: flex; align-items: center; gap: 4px }
.nav a {
  color: #94a3b8;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.06) }
.nav .cta-link {
  color: #fff;
  background: #f97316;
  padding: 9px 16px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
}
.nav .cta-link:hover { background: #ea580c; color: #fff }
.back-link { color: #f97316; font-weight: 600; font-size: 14px; white-space: nowrap }
.back-link:hover { color: #fff }


/* --- Hero --- */
.hero { padding: 52px 0 28px }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 36px;
  align-items: start;
  padding: 52px 0 36px;
}
.badge {
  display: inline-block;
  background: rgba(249,115,22,.12);
  color: #fdba74;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hot { color: #f97316; font-weight: 700; font-size: 14px; margin-bottom: 12px }
.accent { color: #f97316 }
.lead { font-size: 18px; color: #94a3b8; max-width: 640px; line-height: 1.7; margin-bottom: 24px }
.sub  { font-size: 18px; color: #94a3b8; max-width: 640px; line-height: 1.7; margin-bottom: 24px }
.trust { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; margin-bottom: 20px }
.trust span {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  padding: 7px 14px;
  color: #e2e8f0;
  font-size: 13px;
}
.summary { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 8px }
.summary span {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  padding: 7px 14px;
  color: #e2e8f0;
  font-size: 13px;
}


/* --- Cards & Boxes --- */
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 28px;
}
.box {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 24px;
}
.box h3 { margin-top: 0 }
.card h2:first-child, .card h3:first-child { margin-top: 0 }


/* --- Buttons --- */
.btn, .cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 20px;
  background: #f97316;
  border-radius: 13px;
  color: #fff !important;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  line-height: 1.3;
}
.btn:hover, .cta:hover { background: #ea580c; transform: translateY(-1px) }


/* --- Forms --- */
label { display: block; margin: 16px 0 6px; font-weight: 600; color: #e2e8f0; font-size: 15px }
input, select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid rgba(255,255,255,.12);
  background: #111827;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
input:focus, select:focus { outline: none; border-color: #f97316 }
input::placeholder { color: #4b5563 }
button[type="submit"] {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  border: none;
  border-radius: 13px;
  background: #f97316;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, transform .1s;
}
button[type="submit"]:hover { background: #ea580c; transform: translateY(-1px) }
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: #94a3b8;
  cursor: pointer;
}
.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: #f97316;
  padding: 0;
}
.hint { margin-top: 12px; font-size: 13px; color: #94a3b8; line-height: 1.5 }
.small-trust { margin-top: 14px; font-size: 13px; color: #94a3b8; line-height: 2 }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden }


/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px }


/* --- Page sections --- */
.section { padding: 40px 0 20px }
.section-title { font-size: 34px; line-height: 1.15; color: #fff; margin-bottom: 12px }
.section-sub { max-width: 700px; color: #94a3b8; margin-bottom: 28px; font-size: 17px }
.content-wrap { max-width: 760px }
.content-wrap h2 { color: #fff }
.content-wrap ul { padding-left: 22px }


/* --- Content components --- */
.checklist li::marker { color: #f97316 }
.warnlist  li::marker { color: #ef4444 }

.note {
  border-left: 4px solid #f97316;
  padding: 14px 18px;
  background: rgba(249,115,22,.06);
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}
.note p:last-child { margin-bottom: 0 }

aside { display: flex; flex-direction: column; gap: 16px }
.grid-2 > div:last-child { display: flex; flex-direction: column; gap: 16px }
.toc { background: rgba(255,255,255,.03) }
.toc a { display: block; padding: 8px 0; color: #fdba74; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 15px }
.toc a:last-child { border-bottom: none }
.toc a:hover { color: #fff }

.muted { color: #94a3b8 }
.mt-0 { margin-top: 0 !important }
.sticky-card { position: sticky; top: 80px }


/* --- FAQ --- */
.faq-list { display: grid; gap: 16px; margin-top: 24px }
.faq-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 20px 22px;
}
.faq-item strong { display: block; color: #fff; font-size: 16px; margin-bottom: 8px; line-height: 1.4 }
.faq-item h3 { margin: 0 0 8px; color: #fff; font-size: 17px }
.faq-item p:last-child { margin-bottom: 0 }


/* --- Tables (desktop) --- */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
}
table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.02) }
th, td { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: left; vertical-align: top; font-size: 15px }
th { color: #fff; background: rgba(255,255,255,.05); font-size: 13px; font-weight: 700; letter-spacing: .3px }
tr:last-child td { border-bottom: none }


/* --- Internal link pills --- */
.internal-links, .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px }
.internal-links a, .links a,
.internal-links span.current-page, .links span.current-page {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 8px 15px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.internal-links a:hover, .links a:hover {
  background: rgba(249,115,22,.14);
  color: #fdba74;
  border-color: rgba(249,115,22,.3);
}
.internal-links span.current-page, .links span.current-page {
  background: rgba(249,115,22,.15);
  border-color: rgba(249,115,22,.35);
  color: #fdba74;
  font-weight: 700;
  cursor: default;
}


/* --- Footer --- */
footer {
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 60px;
  padding: 28px 0 48px;
  color: #64748b;
  font-size: 14px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px }
.footer-links a { color: #94a3b8; transition: color .15s }
.footer-links a:hover { color: #fff }


/* --- Banner (homepage sidebar) --- */
.banner-side { display: flex; justify-content: center; align-items: flex-start }
.banner-side img { max-width: 120px; border-radius: 8px; opacity: .85; transition: opacity .2s }
.banner-side img:hover { opacity: 1 }
.banner-mobile { display: none; justify-content: center; margin: 24px 0 0 }


/* ===========================================
   RESPONSIVE — tablet ≤960px
   =========================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 0 28px }
  .grid-2    { grid-template-columns: 1fr }
  .grid-3    { grid-template-columns: 1fr }
  .banner-side  { display: none }
  .banner-mobile { display: flex }
  /* only keep the CTA button in the nav on tablet */
  .nav a:not(.cta-link) { display: none }
}


/* ===========================================
   RESPONSIVE — mobile ≤600px
   =========================================== */
@media (max-width: 600px) {
  /* topbar */
  .topbar { padding: 0 16px; height: 58px }
  .brand-title { font-size: 15px }
  .brand-sub { display: none }

  /* layout */
  .container { padding: 0 16px }

  /* typography */
  h1 { font-size: 30px }
  h2 { font-size: 24px; margin-top: 32px }
  h3 { font-size: 19px }
  .section-title { font-size: 26px }
  .lead, .sub { font-size: 16px }

  /* spacing */
  .hero { padding: 28px 0 16px }
  .section { padding: 24px 0 12px }
  .card { padding: 20px }
  .box  { padding: 18px }
  .faq-item { padding: 16px }

  /* trust / summary pills */
  .trust span, .summary span { font-size: 12px; padding: 6px 12px }

  /* footer */
  footer { margin-top: 40px; padding: 20px 0 36px }
}


/* ===========================================
   RESPONSIVE TABLES → stacked cards ≤600px
   =========================================== */
@media (max-width: 600px) {
  .table-wrap { border: none; border-radius: 0; overflow: visible; margin: 16px 0 }
  table  { display: block }
  thead  { display: none }
  tbody  { display: flex; flex-direction: column; gap: 10px }
  tr {
    display: block;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 2px 0 6px;
  }
  td {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: 14px;
  }
  td:last-child { border-bottom: none }
  td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .4px;
  }
}


/* ===========================================
   SKIP LINK (accessibility)
   =========================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #f97316;
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { left: 16px }


/* ===========================================
   BREADCRUMB
   =========================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  margin: 16px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: #94a3b8; text-decoration: none }
.breadcrumb a:hover { color: #fff }
.breadcrumb span { color: #94a3b8 }
.breadcrumb-sep { color: #334155 }


/* ===========================================
   TESTIMONIALS / SOCIAL PROOF
   =========================================== */
.testimonials { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 24px }
.testimonial {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 20px;
}
.testimonial-text { font-size: 15px; color: #cbd5e1; margin-bottom: 14px; font-style: italic; line-height: 1.6 }
.testimonial-author { font-size: 13px; color: #64748b; display: flex; align-items: center; gap: 8px }
.testimonial-stars { color: #f97316; letter-spacing: 1px; font-size: 14px }
.social-proof-bar {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 16px 24px;
  margin-top: 28px;
}
.proof-item { display: flex; align-items: center; gap: 10px }
.proof-num { font-size: 22px; font-weight: 800; color: #fff; line-height: 1 }
.proof-label { font-size: 13px; color: #64748b; line-height: 1.3 }
@media (max-width: 600px) {
  .testimonials { grid-template-columns: 1fr }
  .social-proof-bar { gap: 16px; padding: 14px 18px }
}


/* ===========================================
   FORM ERROR NOTICE
   =========================================== */
.form-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.35);
  border-radius: 11px;
  padding: 12px 16px;
  color: #fca5a5;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}


/* ===========================================
   SSL / TRUST BADGE INLINE
   =========================================== */
.ssl-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  margin-top: 10px;
}
.ssl-badge svg { flex-shrink: 0 }


/* ===========================================
   STEPS LIST
   =========================================== */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: steps-counter;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.steps li {
  counter-increment: steps-counter;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 0;
}
.steps li::before {
  content: counter(steps-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(249,115,22,.18);
  color: #f97316;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}


/* ===========================================
   MOBILE STICKY CTA BAR (content pages)
   =========================================== */
.mobile-cta-bar {
  display: none;
}
@media (max-width: 960px) {
  .mobile-cta-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11,18,32,.97);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 12px 16px;
    z-index: 200;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  .mobile-cta-bar .cta {
    max-width: 500px;
    margin: 0 auto;
    display: block;
  }
  /* push footer up so it isn't hidden behind bar */
  body { padding-bottom: 72px }
}
