/* ===========================================================
   RemotePath Jobs — Stylesheet
   Palette: white base, indigo accent, slate-blue tint cards
   Type: Outfit (display) + Inter (body)
=========================================================== */

:root{
  --ink: #1B1F3B;
  --slate: #5B6072;
  --slate-light: #8A8FA3;
  --indigo: #3D3FE0;
  --indigo-dark: #2A2CBE;
  --tint: #F0F2FD;
  --tint-border: #DDE1F7;
  --white: #FFFFFF;
  --success: #1F9D6C;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 8px 24px rgba(29, 33, 79, 0.07);
  --shadow-lift: 0 14px 34px rgba(29, 33, 79, 0.12);
  --max-width: 1160px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: 'Outfit', 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1{ font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 700; }
h2{ font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 600; }
h3{ font-size: 1.1rem; font-weight: 600; }

p{ margin: 0 0 1em; color: var(--slate); max-width: 62ch; }

a{ color: var(--indigo); text-decoration: none; }

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

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  html{ scroll-behavior: auto; }
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible{
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}
.btn-primary{
  background: var(--indigo);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover{
  background: var(--indigo-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}
.btn-secondary{
  background: var(--tint);
  color: var(--indigo);
  border: 1px solid var(--tint-border);
}
.btn-secondary:hover{
  background: var(--tint-border);
}
.btn-large{ padding: 16px 34px; font-size: 1.05rem; }
.btn-block{ width: 100%; }

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--tint-border);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo{
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}
.logo span{ color: var(--indigo); }

.main-nav{
  display: none;
  gap: 28px;
}
.main-nav a{
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover{ color: var(--indigo); }

.nav-toggle{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 860px){
  .main-nav{ display: flex; }
  .nav-toggle{ display: none; }
}

.main-nav.mobile-open{
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 12px 20px 20px;
  border-bottom: 1px solid var(--tint-border);
  gap: 14px;
  box-shadow: var(--shadow-soft);
}

/* ---------- Hero ---------- */
.hero{
  padding: 56px 0 60px;
  background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%);
}
.hero-inner{
  display: grid;
  gap: 40px;
}
.hero-sub{ font-size: 1.08rem; max-width: 46ch; }
.trust-text{
  font-size: 0.88rem;
  color: var(--slate-light);
  margin-top: 14px;
}

.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-card{
  background: var(--white);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.stat-num{
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--indigo);
}
.stat-label{
  display: block;
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 4px;
}

@media (min-width: 860px){
  .hero-inner{
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

/* ---------- Section shared ---------- */
section{ padding: 56px 0; }
.section-sub{ margin-bottom: 30px; max-width: 60ch; }
.demo-note{
  background: var(--tint);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.92rem;
}
.demo-note strong{ color: var(--ink); }

/* ---------- Categories ---------- */
.categories{ background: var(--white); }
.category-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px){
  .category-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 940px){
  .category-grid{ grid-template-columns: repeat(5, 1fr); }
}
.category-card{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--tint);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.category-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--indigo);
}
.category-card:focus-visible{
  outline: 3px solid var(--indigo);
  outline-offset: 2px;
}
.cat-icon{ font-size: 1.6rem; }
.cat-name{
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
}

/* ---------- Jobs ---------- */
.jobs{ background: var(--tint); }
.job-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px){
  .job-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px){
  .job-grid{ grid-template-columns: repeat(3, 1fr); }
}

.job-card{
  background: var(--white);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.job-card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.job-card-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.job-title{ font-size: 1.08rem; margin: 0; }
.job-badge{
  flex-shrink: 0;
  background: var(--tint);
  color: var(--indigo);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--tint-border);
}
.job-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.85rem;
  color: var(--slate-light);
}
.job-meta span{ display: flex; align-items: center; gap: 5px; }
.job-desc{ font-size: 0.92rem; margin-bottom: 4px; }
.job-card .btn{ margin-top: auto; align-self: flex-start; }

.example-tag{
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-light);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ---------- Modal (job details) ---------- */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(27, 31, 59, 0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  z-index: 100;
  overflow-y: auto;
}
.modal-overlay.active{ display: flex; }

.modal{
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  margin-top: 40px;
  position: relative;
  box-shadow: var(--shadow-lift);
  animation: modalIn 0.22s ease;
}
@keyframes modalIn{
  from{ opacity: 0; transform: translateY(12px); }
  to{ opacity: 1; transform: translateY(0); }
}
.modal-close{
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--tint);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: var(--slate);
}
.modal-close:hover{ background: var(--tint-border); }
.modal-body{ padding: 32px 28px; }

.detail-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  margin: 20px 0;
  padding: 16px;
  background: var(--tint);
  border-radius: var(--radius-md);
}
.detail-item dt{
  font-size: 0.75rem;
  color: var(--slate-light);
  font-weight: 600;
  margin-bottom: 2px;
}
.detail-item dd{
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}

.modal-body h4{
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  margin: 20px 0 8px;
}
.modal-body ul{ margin: 0 0 14px; padding-left: 20px; color: var(--slate); }
.modal-body ul li{ margin-bottom: 4px; }

.resources-box{
  margin-top: 26px;
  padding: 20px;
  background: var(--tint);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius-md);
}
.resources-box h4{ margin-top: 0; }

.resources-list{
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.resource-link{
  display: block;
  background: var(--white);
  border: 1px solid var(--tint-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}
.resource-link:hover{ border-color: var(--indigo); }
.resource-link span{
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 2px;
}

/*
  ------------------------------------------------------------------
  PLACEHOLDER: If you use an ad-supported content locker, its CSS
  (if any is provided by the network) can be added here or scoped
  under #contentLockerContainer in script.js. No locker script is
  included in this template — see script.js for the exact insertion
  point and README notes for why one isn't included by default.
  ------------------------------------------------------------------
*/

/* ---------- Guide ---------- */
.guide{ background: var(--white); }
.guide-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 700px){
  .guide-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px){
  .guide-grid{ grid-template-columns: repeat(3, 1fr); }
}
.guide-item h3{ color: var(--indigo); }
.guide-item p{ font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq{ background: var(--tint); }
.faq-list{ max-width: 760px; }
.faq-item{
  border-bottom: 1px solid var(--tint-border);
}
.faq-question{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  padding: 18px 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-icon{
  font-size: 1.3rem;
  color: var(--indigo);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-question[aria-expanded="true"] .faq-icon{ transform: rotate(45deg); }

.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p{ padding: 0 4px 18px; font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--ink);
  color: #C7CAE3;
  padding: 48px 0 28px;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}
.site-footer .logo{ color: var(--white); }
.site-footer .logo span{ color: #8B90F0; }
.footer-brand p{ color: #9195B8; font-size: 0.88rem; max-width: 40ch; margin-top: 8px; }
.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a{
  color: #C7CAE3;
  font-size: 0.9rem;
}
.footer-links a:hover{ color: var(--white); }

@media (min-width: 700px){
  .footer-inner{
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.disclaimer{
  font-size: 0.8rem;
  color: #7B7FA3;
  border-top: 1px solid #33375C;
  padding-top: 20px;
  max-width: none;
}
.copyright{
  font-size: 0.78rem;
  color: #656A94;
  margin: 8px 0 0;
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--tint-border);
  z-index: 40;
}
.sticky-cta .btn{ width: 100%; }

@media (min-width: 860px){
  .sticky-cta{ display: none; }
}
