/* TakeMyShift — shared site styles */

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

:root {
  --bg: #0a0e27;
  --bg-2: #05070f;
  --panel: #121936;
  --panel-2: #0d1330;
  --amber: #ffb020;
  --amber-soft: #ffcf7a;
  --sky: #4db2ff;
  --sky-deep: #0066cc;
  --success: #35d08a;
  --live: #ff4d5e;
  --text: #f4f6ff;
  --text-dim: #a6aed1;
  --text-faint: #6b7399;
  --hairline: #232b52;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 24px;
}

/* ---------- backdrop ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 18% -8%, rgba(77,178,255,0.14), transparent 60%),
    radial-gradient(45% 38% at 92% 8%, rgba(255,176,32,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* ---------- nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(10,14,39,0.82);
  border-bottom: 1px solid var(--hairline);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* ---------- promo bar ---------- */
.promo-bar {
  background: linear-gradient(90deg, rgba(255,176,32,0.12), rgba(77,178,255,0.12));
  border-bottom: 1px solid var(--hairline);
  padding: 9px 0;
}
.promo-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}
.promo-bar span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber-soft);
}
.promo-bar .sep {
  color: var(--text-faint);
  font-weight: 400;
}
@media (max-width: 640px) {
  .promo-bar span { font-size: 10.5px; }
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand .chev {
  width: 26px; height: 26px;
  flex-shrink: 0;
}
.brand .sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  display: block;
  margin-top: 1px;
}
.brand-block { display: flex; flex-direction: column; line-height: 1.1; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--amber-soft); }

.nav-cta {
  background: linear-gradient(160deg, var(--sky), var(--sky-deep));
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 10px 22px -12px rgba(0,102,204,0.6);
}

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--hairline);
    color: var(--text); font-size: 18px;
  }
  /* keep Get Started visible on phones, compact, beside the menu button */
  .nav-cta.desktop-only { margin-left: auto; margin-right: 10px; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
}

@media (max-width: 380px) {
  .site-nav .wrap { gap: 8px; }
  .nav-cta.desktop-only { margin-right: 0; padding: 7px 10px; font-size: 12px; }
  .site-nav .brand-block { font-size: 15px; }
  .site-nav .brand-block .sub { font-size: 8.5px; }
}

/* mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 24px 20px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(10,14,39,0.96);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(255,77,94,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,94,.55); }
  70% { box-shadow: 0 0 0 7px rgba(255,77,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,94,0); }
}
@media (prefers-reduced-motion: reduce) { .eyebrow .dot { animation: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 12px;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(160deg, var(--sky), var(--sky-deep));
  color: #fff;
  box-shadow: 0 16px 30px -16px rgba(0,102,204,0.65);
}
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline);
  color: var(--text);
}
.btn-amber {
  background: linear-gradient(160deg, var(--amber-soft), var(--amber));
  color: #241705;
  box-shadow: 0 16px 30px -16px rgba(255,176,32,0.5);
}

/* ---------- hero ---------- */
.hero {
  padding: 76px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 18px 0 20px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--amber-soft); }
.hero p.lede {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* phone mock */
.phone-shell {
  width: min(320px, 100%);
  margin-inline: auto;
  border-radius: 40px;
  padding: 12px;
  background: linear-gradient(160deg, #232b52, #0c1130 60%);
  box-shadow: 0 50px 90px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 320/660;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-screen .ps-top {
  padding: 18px 18px 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.phone-screen .ps-title { font-weight: 800; font-size: 17px; }
.phone-screen .ps-hint {
  font-family: 'IBM Plex Mono', monospace; font-size: 9.5px; color: var(--text-faint);
  margin-top: 3px; letter-spacing: 0.02em;
}
.phone-screen .ps-badge {
  background: rgba(0,102,204,0.18); border: 1px solid rgba(77,178,255,0.35);
  color: var(--sky); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700;
  padding: 5px 8px; border-radius: 7px; flex-shrink: 0; cursor: pointer;
  transition: border-color .15s;
}
.phone-screen .ps-badge:hover { border-color: rgba(77,178,255,0.7); }
.phone-tiles {
  padding: 6px 14px 14px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; align-content: start; flex: 1; overflow-y: auto;
}
.phone-tile {
  background: rgba(18,25,54,0.9); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 12px 10px; text-align: left; font-family: inherit; color: inherit;
  cursor: pointer; transition: border-color .15s, transform .15s;
}
.phone-tile:hover { border-color: rgba(77,178,255,0.4); transform: translateY(-1px); }
.phone-tile .ic { width: 26px; height: 26px; margin-bottom: 8px; }
.phone-tile .t { font-weight: 700; font-size: 12.5px; }
.phone-tile .s { font-family: 'IBM Plex Mono', monospace; font-size: 8.5px; color: var(--text-faint); margin-top: 2px; }

/* ---------- quick-access tile modal ---------- */
.qa-badge {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.qa-badge svg { width: 22px; height: 22px; }
#qaSubtitle { display: block; margin-bottom: 2px; }
.qa-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.qa-shot-wrap { margin: 4px 0 22px; }
.qa-shot-hint {
  font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; color: var(--text-faint);
  letter-spacing: 0.04em; margin-bottom: 8px;
}
.qa-shot-scroll {
  max-height: 320px; overflow: auto;
  border-radius: 12px; border: 1px solid var(--hairline);
  background: #05070f;
}
.qa-shot { display: block; width: 640px; max-width: none; height: auto; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em;
  margin: 14px 0 10px;
  text-wrap: balance;
}
.section-head p { color: var(--text-dim); font-size: 15.5px; margin: 0; }

/* ---------- feature cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.card .ic-badge {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card .ic-badge svg { width: 22px; height: 22px; }
.card h3 { font-size: 17px; margin: 0 0 8px; }
.card p { color: var(--text-dim); font-size: 14px; margin: 0; }
.card .tag {
  display: inline-block; margin-top: 12px;
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint);
}

.badge-sky { background: rgba(77,178,255,0.15); color: var(--sky); }
.badge-amber { background: rgba(255,176,32,0.15); color: var(--amber-soft); }
.badge-live { background: rgba(255,77,94,0.15); color: var(--live); }
.badge-success { background: rgba(53,208,138,0.15); color: var(--success); }

/* ---------- steps (guide) ---------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
}
.step:first-child { border-top: none; }
.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 800;
  font-size: 22px;
  color: var(--amber-soft);
  background: rgba(255,176,32,0.1);
  border: 1px solid rgba(255,176,32,0.25);
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { margin: 4px 0 8px; font-size: 18px; }
.step p { color: var(--text-dim); margin: 0 0 10px; font-size: 14.5px; max-width: 60ch; }
.step ul { margin: 10px 0 0; padding-left: 20px; color: var(--text-dim); font-size: 14px; }
.step li { margin-bottom: 6px; }
.step .mini-note {
  margin-top: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 10px 14px;
  display: inline-block;
}

/* ---------- feature type badges (BuddyBid etc) ---------- */
.trade-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .trade-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .trade-grid { grid-template-columns: 1fr; } }
.trade-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(18,25,54,0.55);
}
.trade-card .k {
  font-family: 'IBM Plex Mono', monospace; font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber-soft); font-weight: 700;
}
.trade-card h4 { margin: 8px 0 6px; font-size: 15.5px; }
.trade-card p { margin: 0; font-size: 13px; color: var(--text-dim); }

/* ---------- games strip ---------- */
.game-row {
  display: flex; align-items: center; gap: 18px;
  padding: 18px; border-radius: var(--radius-md);
  border: 1px solid var(--hairline); background: rgba(18,25,54,0.55);
  margin-bottom: 12px;
}
.game-row .g-ic {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.game-row h4 { margin: 0 0 3px; font-size: 15.5px; }
.game-row p { margin: 0; font-size: 13px; color: var(--text-dim); }

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: 26px;
  padding: 52px 40px;
  text-align: center;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(77,178,255,0.14), transparent 70%),
    linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--hairline);
}
.cta-banner h2 { margin: 10px 0 12px; font-size: clamp(24px, 3.2vw, 32px); }
.cta-banner p { color: var(--text-dim); max-width: 50ch; margin: 0 auto 26px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 50px;
  margin-top: 40px;
}
.footer-grid {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 30px;
}
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--text-dim); font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.footer-note { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--text-faint); margin-top: 14px; }

/* ---------- utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--hairline); color: var(--text-dim);
}

/* ---------- Get Started modal ---------- */
.gs-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5,7,15,0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.gs-overlay.open { opacity: 1; pointer-events: auto; }

.gs-modal {
  position: relative;
  width: min(440px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(165deg, var(--panel), var(--panel-2));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 34px 30px 30px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}

.gs-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--hairline);
  color: var(--text-dim); font-size: 20px; line-height: 1;
  cursor: pointer;
}
.gs-close:hover { color: var(--text); }

.gs-modal h3 { font-size: 22px; margin: 14px 0 8px; letter-spacing: -0.01em; }
.gs-sub { color: var(--text-dim); font-size: 14.5px; margin: 0 0 24px; }

.gs-options { display: flex; flex-direction: column; gap: 12px; }
.gs-option {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  background: rgba(18,25,54,0.55);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
  font-family: inherit; color: inherit;
}
.gs-option:hover { border-color: rgba(77,178,255,0.4); transform: translateY(-1px); }
.gs-opt-ic {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.gs-opt-ic svg { width: 21px; height: 21px; }
.gs-opt-ic-sky { background: rgba(77,178,255,0.15); color: var(--sky); }
.gs-opt-ic-amber { background: rgba(255,176,32,0.15); color: var(--amber-soft); }
.gs-option h4 { margin: 0 0 3px; font-size: 15.5px; }
.gs-option p { margin: 0; font-size: 13px; color: var(--text-dim); }
.gs-arrow { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-faint); }

.gs-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; color: var(--text-dim);
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 0; margin-bottom: 14px; cursor: pointer;
}
.gs-back svg { width: 16px; height: 16px; }
.gs-back:hover { color: var(--text); }

.gs-tabs { display: flex; gap: 8px; margin: 20px 0 18px; }
.gs-tab {
  flex: 1; padding: 10px; border-radius: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--hairline);
  color: var(--text-dim); font-family: inherit; font-weight: 700; font-size: 13px;
  cursor: pointer;
}
.gs-tab.active { background: rgba(77,178,255,0.12); border-color: rgba(77,178,255,0.4); color: var(--text); }

.gs-steps { margin: 0 0 24px; padding-left: 22px; color: var(--text-dim); font-size: 14px; }
.gs-steps li { margin-bottom: 10px; }
.gs-steps strong { color: var(--text); }

.gs-open-btn { width: 100%; }

@media (max-width: 480px) {
  .gs-modal { padding: 28px 20px 24px; }
}

/* Privacy policy page */
.policy { max-width: 760px; }
.policy h2 { font-size: 20px; margin: 36px 0 10px; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { color: var(--text-dim); font-size: 15px; line-height: 1.7; }
.policy ul { padding-left: 20px; }
.policy a { color: var(--sky); }

/* Ad boxes (see ads.js) */
.ad-wrap { padding: 8px 0; }
.ad-slot { max-width: 970px; margin: 0 auto; text-align: center; }
.ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 6px; }
.ad-mock-body {
  min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1.5px dashed var(--hairline); border-radius: var(--radius-md); background: var(--panel-2);
  color: var(--text-dim); font-size: 14px; padding: 16px;
}
.ad-mock-body small { color: var(--text-faint); font-size: 12px; margin-top: 4px; }

/* Crew Tips articles */
.article-meta { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--text-faint); margin: 0 0 24px; }
.tip-list { display: flex; flex-direction: column; gap: 18px; }
.tip-card { display: block; }
.tip-card .badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.tip-card h2 { margin: 12px 0 8px; font-size: 21px; }
.tip-card p { margin: 0 0 12px; }
.tip-more { color: var(--sky); font-weight: 600; font-size: 14.5px; }

/* "From the ramp" quote inside Crew Tips articles */
.ramp-quote { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--amber); background: rgba(255,176,32,0.08); border-radius: 0 12px 12px 0; }
.ramp-quote p { margin: 0 0 6px; font-size: 19px; font-weight: 600; color: var(--amber-soft); }
.ramp-quote cite { font-style: normal; font-size: 13px; color: var(--text-faint); }
