/* Remotely Careers (Remote Devs Limited) */

:root {
  --ink: #16191d;
  --ink-2: #4b525c;
  --ink-3: #868c96;
  --line: #e2e4e7;
  --bg: #ffffff;
  --tint: #f6f6f4;
  --accent: #0f6b4f;
  --accent-hover: #0b5640;
  --max: 1080px;
  --narrow: 720px;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: 1.6rem; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; line-height: 1.4; }
p { margin: 0; }
a { color: inherit; }

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

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 16px; font-weight: 500;
  padding: 13px 22px; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
}
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c9cdd2; }
.btn-ghost:hover { border-color: var(--ink); }
.link-arrow { font-size: 15px; font-weight: 500; color: var(--ink); text-underline-offset: 4px; }
.link-arrow::after { content: " \2192"; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { font-weight: 600; font-size: 17px; text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand span { color: var(--accent); }
.brand .mark { width: 14px; height: 14px; border-radius: 3px; background: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.hero-text { padding-top: 8px; }
.lead { margin-top: 20px; font-size: 18px; color: var(--ink-2); max-width: 32em; }
.cta-row { display: flex; align-items: center; gap: 24px; margin-top: 30px; flex-wrap: wrap; }

/* Sample report */
.report { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 22px 22px 20px; background: #fff; }
.report-cap { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.report-top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.report-name { font-weight: 600; }
.report-role { font-size: 14px; color: var(--ink-2); }
.report-tz { font-size: 13px; text-align: right; white-space: nowrap; }
.report-tz span { font-size: 12px; color: var(--ink-3); }
.scores { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 14px; }
.scores td { padding: 7px 0; }
.scores td:first-child { color: var(--ink-2); width: 46%; }
.scores td:last-child { text-align: right; width: 36px; font-variant-numeric: tabular-nums; font-weight: 500; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--line); position: relative; margin: 0 12px; }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); border-radius: 3px; background: var(--accent); }
.report-note { font-size: 14px; color: var(--ink-2); padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); }
.scores + .report-note { margin-top: 0; }
.report-note strong { color: var(--ink); font-weight: 600; }

/* Sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-tint { background: var(--tint); }
.prose { margin-top: 16px; color: var(--ink-2); }
.section .btn { margin-top: 24px; }

/* Timeline */
.timeline { list-style: none; margin: 28px 0 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.when { font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 3px; }
.timeline p { margin-top: 4px; color: var(--ink-2); }

/* Two-column sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-faq { grid-template-columns: 1fr 2fr; }
.split-faq .faq { margin-top: 0; }
.plain-list { margin: 20px 0 0; padding-left: 18px; color: var(--ink-2); }
.plain-list li { margin: 6px 0; }
.excerpt-cap { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.big-figure { border-left: 3px solid var(--accent); padding-left: 24px; }
.figure { font-size: clamp(3rem, 7vw, 5rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.figure-label { margin-top: 12px; color: var(--ink-2); max-width: 20em; }
.engineers-box { border: 1px solid var(--line); border-radius: 8px; padding: 28px; }

/* Process steps in a row on desktop */
@media (min-width: 921px) {
  .steps-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 36px; border-top: 2px solid var(--line); }
  .steps-row li { display: block; padding: 20px 20px 0 0; border-top: 0; position: relative; }
  .steps-row li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
  .steps-row .when { margin-bottom: 6px; }
  .steps-row p { font-size: 15px; }
}

/* Interview transcript */
.transcript { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 20px; font-size: 15px; }
.transcript p { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.transcript p:first-child { border-top: 0; }
.who { font-size: 13px; font-weight: 600; color: var(--accent); padding-top: 2px; }
.who.cand { color: var(--ink-3); }
.verdict { color: var(--ink-2); }

/* FAQ */
.faq { margin-top: 20px; border-top: 1px solid #d9dbd8; }
.faq details { border-bottom: 1px solid #d9dbd8; }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 500; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 20px; color: var(--ink-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }

/* Footer */
.site-footer { padding: 36px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.site-footer strong { color: var(--ink); font-weight: 600; }
.footer-small { margin-top: 10px; color: var(--ink-3); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(22, 25, 29, 0.5);
}
.modal-backdrop.open { display: flex; }
.modal-box {
  position: relative; width: 100%; max-width: 600px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; border-radius: 10px; padding: 30px;
}
.modal-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
  border: 0; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-3);
}
.modal-close:hover { color: var(--ink); }
.modal-title { font-size: 21px; }
.modal-sub { margin: 6px 0 22px; color: var(--ink-2); font-size: 15px; }

.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--ink);
  padding: 10px 12px; border: 1px solid #cfd3d8; border-radius: 6px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.chip-label { font-size: 12px; font-weight: 500; color: var(--ink-3); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 13px; font-weight: 400; padding: 5px 11px; border-radius: 6px;
  border: 1px solid #cfd3d8; cursor: pointer; user-select: none;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.form-feedback { padding: 18px; border-radius: 6px; font-size: 15px; background: #eef7f2; color: #0b5640; border: 1px solid #c7e3d5; }
.form-feedback.error { background: #fdf0ef; color: #932b22; border-color: #f2cbc7; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid, .split, .split-faq { grid-template-columns: 1fr; gap: 40px; }
  .split-faq { gap: 20px; }
  .report { max-width: 480px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .nav { display: none; }
  .header-row .btn { margin-left: auto; }
  .hero { padding: 48px 0 56px; }
  .lead { font-size: 17px; }
  .section { padding: 56px 0; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .form-2 { grid-template-columns: 1fr; gap: 0; }
  .modal-box { padding: 24px 18px; }
  .report-top { flex-direction: column; }
  .report-tz { text-align: left; }
  .transcript p { grid-template-columns: 1fr; gap: 2px; }
}
