/* ===========================================================
   Referral Hub — design tokens
   Palette: deep pine ink / soft paper / earned-money teal & amber
   Type: Space Grotesk (display) + Inter (body) + IBM Plex Mono (money & codes)
   Signature: reward amounts render as a perforated payout stub
=========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --ink: #14231C;
  --ink-soft: #45524B;
  --paper: #F5F6F2;
  --panel: #FFFFFF;
  --line: #DCE1D8;
  --teal: #1F6E4F;
  --teal-dark: #16523A;
  --amber: #D99A2B;
  --amber-soft: #FBEED4;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20,35,28,0.06), 0 8px 24px rgba(20,35,28,0.05);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

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

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--teal);
  display: inline-block;
  position: relative;
}
.logo .mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.nav-links {
     flex-direction: column;
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 12px 16px;
  line-height: 1.5;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--teal);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 1rem;
}/* ===== Moving Ticker ===== */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #0f172a;
    color: white;
    padding: 12px 0;
}

.ticker {
    display: flex;
    width: max-content;
    animation: ticker 15s linear infinite;
}

.ticker span {
    flex-shrink: 0;
    margin-right: 50px;
    font-size: 18px;
    font-weight: 600;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
/* ---------- Page intro ---------- */

.page-intro {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 0;
}
.page-intro h1 { font-size: 1.9rem; }
.page-intro p { color: var(--ink-soft); max-width: 60ch; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 4px;
}

/* ---------- Controls ---------- */

.controls {
  max-width: 1120px;
  margin: 10px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.controls input[type="search"] {
  flex: 1 1 240px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--panel);
}

.controls select {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink);
}

.results-count {
  max-width: 1120px;
  margin: 8px auto 0;
  padding: 0 24px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

/* ---------- Offer grid ---------- */

.offer-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.offer-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(20,35,28,0.08), 0 14px 28px rgba(20,35,28,0.08);
}

.offer-top {
  padding: 18px 18px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.offer-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--amber-soft);
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offer-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.offer-body { padding: 12px 18px 4px; }
.offer-body h3 { font-size: 1.08rem; }
.offer-body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Signature element: perforated payout stub showing the reward */
.stub {
  margin: 14px 18px 0;
  display: flex;
  align-items: center;
  border-top: 1px dashed var(--line);
  position: relative;
}
.stub::before,
.stub::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
}
.stub::before { left: -25px; }
.stub::after { right: -25px; }

.stub-earn {
  flex: 1;
  padding: 12px 0;
}
.stub-earn .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  display: block;
}
.stub-earn .amount {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--teal-dark);
}

.stub-terms {
  flex: 1;
  padding: 12px 0;
  border-left: 1px dashed var(--line);
  padding-left: 14px;
}
.stub-terms .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  display: block;
}
.stub-terms .value {
  font-size: 0.82rem;
  color: var(--ink);
}

.offer-actions {
  margin-top: auto;
  padding: 16px 18px 18px;
  display: flex;
  gap: 10px;
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 10px 14px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  flex: 1;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal-dark); }

/* ---------- Job cards (distinct from referral offer cards) ---------- */

.job-card {
  position: relative;
  border-color: var(--teal);
  border-width: 1px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel) 100%);
}
.job-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--teal);
}

.job-ribbon {
  position: absolute;
  top: 14px;
  right: 0;
  background: var(--teal-dark);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px 4px 14px;
  border-radius: 6px 0 0 6px;
}

.job-logo {
  background: var(--teal);
  color: #fff;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}
.job-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--teal-dark);
  background: var(--amber-soft);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.job-requirements {
  margin: 10px 18px 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.job-requirements .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 4px;
}
.job-requirements ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--ink);
}
.job-requirements li { margin-bottom: 2px; }

.job-footer {
  margin: 14px 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}
.job-footer .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  display: block;
}
.job-footer .value {
  color: var(--teal-dark);
  font-weight: 600;
}

.no-results {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
  color: var(--ink-soft);
  display: none;
}

/* ---------- Simple content pages (Track / About / Contact) ---------- */

.panel-narrow {
  max-width: 620px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.track-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.track-form input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.status-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.status-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--paper);
}
.status-list li.done { color: var(--teal-dark); }
.status-list li .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  background: var(--teal);
  color: #fff;
}
.status-list li.pending .dot { background: var(--amber); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}
.contact-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form input,
.contact-form textarea {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  resize: vertical;
}

.contact-alt {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}
.contact-alt strong { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}/* =====================================================
   OFFER PAGE
===================================================== */

.offer-page{
    max-width:900px;
    margin:60px auto;
    padding:20px;
}

.offer-card-large{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:20px;
    padding:45px;
    box-shadow:0 12px 40px rgba(0,0,0,.06);
}

.offer-category{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:#eff6ff;
    color:#2563eb;
    padding:8px 18px;
    border-radius:999px;
    font-size:.85rem;
    font-weight:700;
    letter-spacing:.4px;
    text-transform:uppercase;
    margin-bottom:20px;
}

.offer-page h1{
    font-size:2.5rem;
    line-height:1.2;
    color:#111827;
    font-weight:700;
    margin-bottom:30px;
}

.reward-box{
    background:linear-gradient(135deg,#2563eb,#3b82f6);
    color:#ffffff;
    border-radius:18px;
    padding:28px;
    margin:35px 0;
}

.reward-box h2{
    font-size:.95rem;
    font-weight:600;
    opacity:.9;
    margin-bottom:10px;
}

.reward-box .reward{
    font-size:2rem;
    font-weight:700;
    line-height:1.3;
}

.offer-page section{
    margin-top:36px;
    padding-top:24px;
    border-top:1px solid #edf2f7;
}

.offer-page h2{
    font-size:1.45rem;
    color:#111827;
    margin-bottom:18px;
    font-weight:700;
}

.offer-page p{
    color:#4b5563;
    font-size:1.05rem;
    line-height:1.9;
}

.offer-page ul,
.offer-page ol{
    padding-left:25px;
    margin:0;
}

.offer-page li{
    color:#4b5563;
    font-size:1.02rem;
    line-height:1.9;
    margin-bottom:14px;
}

.offer-page li::marker{
    color:#2563eb;
    font-weight:bold;
}

/* Advertisement */

.ad-banner{
    margin:45px 0;
    padding:18px;
    border:1px solid #e5e7eb;
    border-radius:18px;
    background:#f9fafb;
    overflow:hidden;
}

.ad-banner img{
    width:100%;
    display:block;
    border-radius:12px;
}

/* =====================================================
   ADVERTISEMENT CONTAINERS
   Reusable, size-based wrappers for Adsterra ad units.
   Base rules live here; breakpoint overrides live in
   responsive.css.
===================================================== */

.ad-container{
    width:100%;
    max-width:100%;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    overflow-x:auto;
    overflow-y:hidden;
    margin:32px auto;
}

.ad-container::-webkit-scrollbar{
    height:0;
}

.ad-slot{
    flex-shrink:0;
    margin:0 auto;
    line-height:0;
}

/* Reusable banner-size classes */

.ad-728x90 .ad-slot{ width:728px; min-height:90px; }
.ad-468x60 .ad-slot{ width:468px; min-height:60px; }
.ad-320x50 .ad-slot{ width:320px; min-height:50px; }
.ad-320x100 .ad-slot{ width:320px; min-height:100px; }
.ad-300x250 .ad-slot{ width:300px; min-height:250px; }
.ad-300x600 .ad-slot{ width:300px; min-height:600px; }
.ad-160x600 .ad-slot{ width:160px; min-height:600px; }
.ad-160x300 .ad-slot{ width:160px; min-height:300px; }

/* Native / zone ads without a fixed pixel size */
.ad-native .ad-slot{ width:100%; max-width:728px; text-align:center; }

/* Tidy up spacing so ads never stack awkwardly against
   the offer page's section dividers */
.offer-page .ad-container{
    margin:24px auto;
}

.offer-page .ad-container + section{
    margin-top:24px;
}

.offer-page section + .ad-container{
    margin-top:8px;
}

/* Apply Button */

.offer-submit{
    display:block;
    width:100%;
    margin-top:45px;
    padding:18px;
    text-align:center;
    background:#2563eb;
    color:#ffffff;
    text-decoration:none;
    font-size:1.05rem;
    font-weight:700;
    border-radius:14px;
    transition:.25s ease;
    box-shadow:0 8px 20px rgba(37,99,235,.25);
}

.offer-submit:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(37,99,235,.35);
}

.offer-submit:active{
    transform:translateY(0);
}

/* Footer */

.site-footer{
    margin-top:70px;
    padding:35px 20px;
    text-align:center;
    color:#6b7280;
    border-top:1px solid #e5e7eb;
    font-size:.95rem;
}

/* Mobile */

@media (max-width:768px){

.offer-page{
    margin:30px auto;
    padding:15px;
}

.offer-card-large{
    padding:28px;
    border-radius:16px;
}

.offer-page h1{
    font-size:2rem;
}

.reward-box{
    padding:22px;
}

.reward-box .reward{
    font-size:1.6rem;
}

.offer-page h2{
    font-size:1.3rem;
}

.offer-page p,
.offer-page li{
    font-size:1rem;
}

.offer-submit{
    padding:16px;
}

}
/* ---------- Submit Page ---------- */

.form-container {
  max-width: 750px;
  margin: 40px auto;
  padding: 20px;
}

.form-container h1 {
  margin-bottom: 8px;
}

.form-container p {
  color: #6b7280;
  margin-bottom: 25px;
}

.form-container form {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.form-container h2 {
  margin: 30px 0 15px;
  color: #111827;
}

.form-container h2:first-of-type {
  margin-top: 0;
}

.form-container label {
  display: block;
  margin: 15px 0 8px;
  font-weight: 600;
}

.form-container input,
.form-container textarea,
.form-container select {
  width: 100%;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  transition: .3s;
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.form-container textarea {
  resize: vertical;
  min-height: 120px;
}

.form-container button {
  width: 100%;
  margin-top: 30px;
  padding: 16px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
}

.form-container button:hover {
  background: #1d4ed8;
}

/* ---------- FAQ Section ---------- */

details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}

summary {
  padding: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  content: "−";
}

details p {
  padding: 0 16px 16px;
  margin: 0;
  line-height: 1.7;
  color: var(--text-muted);
}
/* ---------- Responsive ---------- */

@media (max-width: 768px) {

  .offer-page,
  .form-container {
    padding: 16px;
  }

  .offer-card-large,
  .form-container form {
    padding: 20px;
  }

  .reward-box .reward {
    font-size: 1.7rem;
  }

  .offer-submit,
  .form-container button {
    width: 100%;
    text-align: center;
  }
}
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 10px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .stub { flex-direction: column; align-items: stretch; }
  .stub::before, .stub::after { display: none; }
  .stub-terms { border-left: none; border-top: 1px dashed var(--line); padding-left: 0; margin-top: 4px; }
}
/* ==========================
   Social Media Page
========================== */

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0,0,0,.12);
}

.card h2 {
    margin-bottom: .8rem;
    font-size: 1.4rem;
    color: #0f172a;
}

.card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.offer-submit {
    display: inline-block;
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: .8rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    transition: .25s;
}

.offer-submit:hover {
    background: #1d4ed8;
}

.page-intro {
    max-width: 800px;
    margin: 3rem auto 2rem;
    text-align: center;
    padding: 0 1rem;
}

.page-intro h1 {
    font-size: 2rem;
    margin: .5rem 0;
    color: #0f172a;
}

.page-intro p {
    color: #64748b;
    line-height: 1.7;
}

.eyebrow {
    display: inline-block;
    background: #dbeafe;
    color: #2563eb;
    padding: .35rem .9rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
}
