/*
Theme Name: RemoteJobClub
Description: Remote job board for remotejobclub.app. Landing page, sign-up, members-only job list, sticky newsletter / coffee / ad sidebar.
Version: 1.0.0
Text Domain: remotejobclub
*/
:root {
  --ink: #0f1222; --text: #3b4054; --muted: #6b7086; --line: #e7e8ef; --soft: #f6f6fa;
  --brand: #5b45e0; --brand-d: #4a35cc; --brand-l: #efecfe; --coffee: #ffdd00; --ok: #0f9d58; --err: #d93025;
  --r: 14px; --shadow: 0 1px 2px rgba(16,18,34,.04), 0 2px 8px rgba(16,18,34,.05);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--text); background: #fff; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-d); }
h1, h2, h3 { color: var(--ink); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .4em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.hp { position: absolute; left: -9999px; }
.section { margin-top: 88px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 10px 18px; font: 600 .95rem/1.2 inherit; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(91,69,224,.55); }
.btn-primary:hover { background: var(--brand-d); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cfd1dc; color: var(--ink); background: var(--soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262a40; color: #fff; }
.btn-google { background: #fff; color: var(--ink); border-color: #d6d8e1; padding: 13px 22px; font-size: 1.05rem; box-shadow: var(--shadow); }
.btn-google:hover { background: var(--soft); color: var(--ink); }
.btn-coffee { background: var(--coffee); color: #1b1b1b; }
.btn-coffee:hover { background: #f5d100; color: #1b1b1b; }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid rgba(231,232,239,.7); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.12rem; letter-spacing: -.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { color: var(--brand); display: inline-flex; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > a:not(.btn) { color: var(--text); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav-links > a:not(.btn):hover { background: var(--soft); color: var(--ink); }
.nav-links .btn { padding: 8px 16px; margin-left: 4px; }
.nav-t, .nav-burger { display: none; }

/* Hero */
.hero { margin-top: 28px; background: var(--soft); border-radius: 32px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 72px 0 72px 72px; overflow: hidden; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.07; }
.hero .accent { color: var(--brand); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: #50566b; max-width: 560px; margin: 18px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cta .nsl-container { margin: 0 !important; }
.proof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-weight: 500; color: var(--ink); }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 1.1rem; }
.hero-visual { align-self: stretch; display: flex; align-items: center; }
.browser { position: relative; width: 100%; min-height: 380px; background: #fff; border: 6px solid #15172a; border-right: 0; border-radius: 20px 0 0 20px; box-shadow: -20px 30px 60px -20px rgba(16,18,34,.25); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e3e4ea; }
.browser-bar span { margin-left: 10px; background: var(--soft); padding: 3px 10px; border-radius: 6px; }
.browser-glow { height: 110px; background: radial-gradient(120% 140% at 0% 100%, #ff7a18 0%, #ff9f43 28%, #f9b1e8 62%, #efe9ff 100%); }
.browser-body { padding: 16px; margin-top: -54px; display: grid; gap: 10px; }
.mini-job { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.mini-job b { display: block; color: var(--ink); font-size: .92rem; }
.mini-job span { display: block; color: var(--muted); font-size: .8rem; }
.mini-job em { margin-left: auto; font-style: normal; font-size: .78rem; font-weight: 600; color: #fff; background: var(--brand); padding: 6px 12px; border-radius: 8px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-l); color: var(--brand); font-weight: 700; margin-bottom: 14px; }

/* Jobs */
.section-head, .jobs-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.grid-jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.job { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.job:hover { border-color: #d4d0f7; box-shadow: 0 10px 30px -12px rgba(91,69,224,.25); transform: translateY(-2px); }
.job .btn { margin-top: auto; }
.job-top { display: flex; align-items: flex-start; gap: 12px; }
.job-badge { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: var(--brand); background: linear-gradient(135deg, #efecfe, #fde9f6); }
.job-badge.sm { width: 36px; height: 36px; border-radius: 10px; font-size: .9rem; }
.job-head { min-width: 0; flex: 1; }
.job-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.job-title { font-size: 1.05rem; margin: 2px 0 0; }
.job-ago { flex: none; font-size: .78rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--soft); border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 500; color: #4a4f63; }
.chip svg { width: 13px; height: 13px; }
.chip-money { background: #e9f8ef; color: #0b7a43; font-weight: 600; }
.job-skills { font-size: .86rem; color: var(--muted); margin: 0 0 6px; }
.job-deadline { font-size: .8rem; color: #b26a00; margin: 0 0 6px; }
.job .btn { margin-top: 14px; }

/* Jobs page layout + sticky sidebar */
.jobs-page { padding-top: 36px; }
.jobs-head h1 { font-size: 2rem; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow); width: min(460px, 100%); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; color: var(--ink); padding: 6px 0; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.list { display: grid; gap: 14px; }
.side-sticky { position: sticky; top: 88px; display: grid; gap: 14px; max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 4px; }
.box { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fff; }
.box h3 { margin: 10px 0 4px; }
.box p { font-size: .9rem; }
.box-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-l); color: var(--brand); }
.box-icon.coffee { background: #fff6c2; color: #8a6d00; }
.box-coffee { background: linear-gradient(180deg, #fffbe6, #fff); border-color: #f4e7a1; }
.nl-form { display: flex; flex-direction: column; gap: 8px; }
.nl-form input[type=email] { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: inherit; }
.nl-form input:focus, .form input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-l); }
.ad { position: relative; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.ad-label { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: rgba(255,255,255,.92); color: var(--muted); padding: 3px 7px; border-radius: 6px; }
.ad-link { display: block; color: var(--ink); }
.ad-img { display: block; width: 100%; height: auto; aspect-ratio: 6/5; object-fit: cover; }
.ad-title { display: block; padding: 12px 14px; font-weight: 600; font-size: .92rem; }
.ad-html { padding: 34px 12px 12px; }
.ad-empty { display: grid; gap: 4px; place-items: center; text-align: center; padding: 40px 16px 30px; background: repeating-linear-gradient(135deg, #fafafe, #fafafe 10px, #f4f4fa 10px, #f4f4fa 20px); color: var(--muted); font-size: .85rem; }
.ad-empty b { color: var(--ink); font-size: 1rem; }
.welcome { background: var(--brand-l); color: #3a2aa8; border-radius: 14px; padding: 14px 18px; margin-bottom: 20px; font-weight: 500; }
.empty { border: 1px dashed var(--line); border-radius: 18px; padding: 48px; text-align: center; color: var(--muted); }

/* Coffee + newsletter bands */
.coffee-band { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; background: #fff8d6; border: 1px solid #f6e7a0; border-radius: 28px; padding: 36px 40px; }
.coffee-cup { font-size: 3rem; width: 84px; height: 84px; display: grid; place-items: center; background: var(--coffee); border-radius: 24px; transform: rotate(-6deg); }
.coffee-copy { flex: 1; min-width: 240px; }
.coffee-copy p { margin: 0; color: #5d5332; }
.news-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; background: var(--ink); border-radius: 28px; padding: 44px; color: #c8cbe0; }
.news-band h2 { color: #fff; }
.news-band .muted { color: #a4a8c2; }
.news-band .nl-form { flex-direction: row; }
.news-band .nl-form input[type=email] { flex: 1; min-width: 0; background: #1d2035; border-color: #2c3050; color: #fff; }
.news-band .btn-dark { background: var(--brand); }
.ok { color: #6ee7a8; font-weight: 600; }
.box .ok { color: var(--ok); }
.err { color: var(--err); font-size: .9rem; }

/* Auth */
.auth { display: grid; place-items: center; padding: 56px 20px 24px; }
.auth-card { width: min(440px, 100%); border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: 0 30px 60px -30px rgba(16,18,34,.2); }
.auth-card h1 { font-size: 1.7rem; }
.auth-card .btn-google, .auth-card .nsl-container { width: 100%; margin-top: 10px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 20px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form input:not([type=checkbox]) { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font: inherit; font-weight: 400; }
.form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); }
.form .check input { accent-color: var(--brand); }
.prose { max-width: 760px; }

/* Footer */
.foot { margin-top: 96px; border-top: 1px solid var(--line); padding: 40px 0 28px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-in p { margin: 10px 0 0; max-width: 340px; font-size: .9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.foot-links a { color: var(--text); font-weight: 500; }
.foot-bottom { margin-top: 28px; font-size: .82rem; }

/* Responsive */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 48px 32px 0; }
  .browser { border-right: 6px solid #15172a; border-radius: 20px 20px 0 0; border-bottom: 0; min-height: 300px; }
  .grid-jobs { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .side-sticky { position: static; max-height: none; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 760px) {
  .section { margin-top: 64px; }
  .hero { padding: 36px 20px 0; border-radius: 24px; margin-top: 16px; }
  .hero-cta .btn { width: 100%; }
  .steps, .grid-jobs, .news-band { grid-template-columns: 1fr; }
  .news-band, .coffee-band { padding: 28px 22px; border-radius: 22px; }
  .news-band .nl-form { flex-direction: column; }
  .nav-burger { display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ''; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
  .nav-burger span::before { position: absolute; top: -6px; } .nav-burger span::after { position: absolute; top: 6px; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 18px; }
  .nav-t:checked ~ .nav-links { display: flex; }
  .nav-links .btn { margin: 6px 0 0; }
  .search { width: 100%; }
  .auth-card { padding: 24px; }
}

/* ---- Logo ---- */
.logo-mark svg { display: block; border-radius: 9px; box-shadow: 0 4px 10px -4px rgba(91,69,224,.6); }
.logo-word { font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.logo-word b { color: var(--brand); font-weight: 800; }

/* ---- Header coffee button ---- */
.btn-nav-coffee { padding: 8px 14px; margin-left: 4px; font-size: .9rem; }
.btn-nav-coffee svg { width: 16px; height: 16px; }

/* ---- Email-only access form ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.access { max-width: 560px; }
.access-row { display: flex; gap: 10px; }
.access-email { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #d6d8e1; border-radius: 14px; padding: 0 14px; color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.access-email:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-l); }
.access-email.is-ok { border-color: #22a565; }
.access-email.is-bad { border-color: var(--err); box-shadow: 0 0 0 4px #fde8e7; }
.access-email input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.02rem; color: var(--ink); padding: 14px 0; background: transparent; }
.access-state { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.access-email.is-ok .access-state { background: #22a565 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.access-msg { min-height: 1.2em; margin: 6px 2px 4px; font-size: .86rem; }
.access-msg.is-err { color: var(--err); }
.access-msg.is-hint { color: #8a5a00; }
.access-opts { display: grid; gap: 10px; }
.access-opts select { justify-self: start; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .9rem; color: var(--text); background: #fff; }
.access .check { display: flex; align-items: flex-start; gap: 9px; font-size: .86rem; color: var(--text); line-height: 1.45; cursor: pointer; }
.access .check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.access-note { margin: 10px 2px 0; }
.access-card .access-row { flex-direction: column; }
.access-card .btn { width: 100%; }
.access-card .access-opts select { justify-self: stretch; }
.hero .access { margin-top: 4px; }
@media (max-width: 760px) {
  .access-row { flex-direction: column; }
  .access .btn { width: 100%; }
  .btn-nav-coffee { justify-content: center; }
}
